Bug #195370 - Filter some more bogus matches due to
authorZac Medico <zmedico@gentoo.org>
Fri, 12 Oct 2007 22:34:53 +0000 (22:34 -0000)
committerZac Medico <zmedico@gentoo.org>
Fri, 12 Oct 2007 22:34:53 +0000 (22:34 -0000)
old-style virtuals.

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

pym/emerge/__init__.py

index 645f2834fca006306db6546ae5b89ba80f8a2449..e1fa5e4b67cc8b8d075df58358540bb591592865 100644 (file)
@@ -3100,12 +3100,16 @@ class depgraph(object):
                                #we need to use "--emptrytree" testing here rather than "empty" param testing because "empty"
                                #param is used for -u, where you still *do* want to see when something is being upgraded.
                                myoldbest=""
+                               installed_versions = vardb.match(portage.cpv_getkey(pkg_key))
                                if vardb.cpv_exists(pkg_key):
                                        addl="  "+yellow("R")+fetch+"  "
                                        if x[3] != "nomerge":
                                                if ordered:
                                                        counters.reinst += 1
-                               elif vardb.match(portage.dep_getkey(pkg_key)):
+                               # filter out old-style virtual matches
+                               elif installed_versions and \
+                                       portage.cpv_getkey(installed_versions[0]) == \
+                                       portage.cpv_getkey(pkg_key):
                                        mynewslot = mydbapi.aux_get(pkg_key, ["SLOT"])[0]
                                        slot_atom = "%s:%s" % \
                                                (portage.cpv_getkey(pkg_key), mynewslot)