File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,13 @@ def get_dep_tree(package_spec, verbose):
9696def find_deps (pkgs , dep_tree ):
9797 """Recursively resolve dependencies of the given package(s) and return them"""
9898 res = []
99- for pkg in pkgs :
100- pkg = canonicalize_name (pkg )
99+ for orig_pkg in pkgs :
100+ pkg = canonicalize_name (orig_pkg )
101101 matching_entries = [entry for entry in dep_tree
102102 if pkg in (entry ['package' ]['package_name' ], entry ['package' ]['key' ])]
103+ if not matching_entries :
104+ matching_entries = [entry for entry in dep_tree
105+ if orig_pkg in (entry ['package' ]['package_name' ], entry ['package' ]['key' ])]
103106 if not matching_entries :
104107 raise RuntimeError ("Found no installed package for '%s' in %s" % (pkg , dep_tree ))
105108 if len (matching_entries ) > 1 :
You can’t perform that action at this time.
0 commit comments