Fix --update greedy atoms logic so that it only pulls in packages that
authorZac Medico <zmedico@gentoo.org>
Tue, 8 Apr 2008 17:57:59 +0000 (17:57 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 8 Apr 2008 17:57:59 +0000 (17:57 -0000)
actually match the given atom.

svn path=/main/trunk/; revision=9755

pym/_emerge/__init__.py

index ed0b8aafa750057bf53a375e8a5d7d7a661f1e82..96c4cbbc40ce6c805b768713db5d9a8d49c417e1 100644 (file)
@@ -2222,7 +2222,7 @@ class depgraph(object):
                                        continue
                                atom_cp = portage.dep_getkey(arg.atom)
                                slots = set()
-                               for cpv in vardb.match(atom_cp):
+                               for cpv in vardb.match(arg.atom):
                                        slots.add(vardb.aux_get(cpv, ["SLOT"])[0])
                                for slot in slots:
                                        greedy_atoms.append(