diff options
-rw-r--r-- | pym/_emerge/__init__.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index b6541bd47..97fc0e1ab 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -1708,9 +1708,13 @@ class depgraph(object): for atom in self._set_atoms.iterAtomsForPackage(pkg): refs = atom_arg_map[(atom, pkg.root)] for arg in refs: - any_arg = arg if isinstance(arg, PackageArg): + # TODO: Implement a better comparison to ensure that + # these two packages really are identical. + if arg.package.type_name != pkg.type_name: + continue return arg + any_arg = arg return any_arg def select_files(self, myfiles): |