Use package skip list inside the loop to avoid KeyError

This commit is contained in:
Zbigniew Siciarz 2014-11-12 09:35:02 +01:00
parent 617c46e889
commit 752bf9e23a
1 changed files with 2 additions and 0 deletions

View File

@ -241,6 +241,8 @@ def main():
print('Warning!!! Possible confusing dependencies found:', file=sys.stderr) print('Warning!!! Possible confusing dependencies found:', file=sys.stderr)
for xs in confusing: for xs in confusing:
for i, (p, d) in enumerate(xs): for i, (p, d) in enumerate(xs):
if d.key in skip:
continue
pkg = top_pkg_name(p) pkg = top_pkg_name(p)
req = non_top_pkg_name(d, pkg_index[d.key]) req = non_top_pkg_name(d, pkg_index[d.key])
tmpl = ' {0} -> {1}' if i > 0 else '* {0} -> {1}' tmpl = ' {0} -> {1}' if i > 0 else '* {0} -> {1}'