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

svn path=/main/branches/2.1.2/; revision=9757

bin/emerge

index ac1555ef17dabd916e2927664631fe11d59de372..d50adaf43ddb5b419a114ffaa0fd1257f0b2d7b1 100755 (executable)
@@ -2361,7 +2361,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(