Commit 81246202 authored by Aleksandr Derbenev's avatar Aleksandr Derbenev Committed by Commit Bot

Make an error on wrong recursedeps entry.

BUG=685433

Change-Id: I5eb68c4a3bfd1c93edecf33127a459822f5a23ed
Reviewed-on: https://chromium-review.googlesource.com/440945Reviewed-by: 's avatarDirk Pranke <dpranke@chromium.org>
Commit-Queue: Dirk Pranke <dpranke@chromium.org>
parent 692edc1b
......@@ -688,6 +688,14 @@ class Dependency(gclient_utils.WorkItem, DependencySettings):
'ParseDepsFile(%s): allowed_hosts must be absent '
'or a non-empty iterable' % self.name)
# Check that all recursedeps are valid.
if self.recursedeps is not None:
for name in self.recursedeps:
if name not in deps:
raise gclient_utils.Error(
'ParseDepsFile(%s): recursedeps contains entry, '
'that is not referenced in deps: %s' % name)
# Convert the deps into real Dependency.
deps_to_add = []
for name, url in deps.iteritems():
......
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