From 76d35e4517a3254d12f87c165a54dc330ddd7722 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 11 Nov 2007 08:47:43 +0000 Subject: [PATCH] Fix depgraph._get_arg_for_pkg() so that it compares package types to help ensure a proper match. svn path=/main/trunk/; revision=8488 --- pym/_emerge/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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): -- 2.26.2