Commit 98d05fa3 authored by maruel@chromium.org's avatar maruel@chromium.org

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
parent c57e4f28
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment