Fix a bug with From('..', None) not working.

This issue is exhibited by pagespeed.

Also a solution is always a direct dependency by definition.

TEST=none
TBR=bradnelson

Review URL: http://codereview.chromium.org/3036013

git-svn-id: svn://svn.chromium.org/chrome/trunk/tools/depot_tools@53397 0039d316-1c4b-4281-b951-d872f2087c98
experimental/szager/collated-output
maruel@chromium.org 15 years ago
parent c57e4f2848
commit 98d05fa37e

@ -191,7 +191,7 @@ class Dependency(GClientKeywords):
raise Exception('Failed to find one reference to %s. %s' % (
url.module_name, ref))
ref = ref[0]
sub_target = url.sub_target_name or url
sub_target = url.sub_target_name or self.name
# Make sure the referenced dependency DEPS file is loaded and file the
# inner referenced dependency.
ref.ParseDepsFile(False)
@ -752,7 +752,7 @@ solutions = [
def ParseDepsFile(self, direct_reference):
"""No DEPS to parse for a .gclient file."""
self.direct_reference = direct_reference
self.direct_reference = True
self.deps_parsed = True
def root_dir(self):

Loading…
Cancel
Save