Fix depgraph._select_package() to make sure the installed package is a real
authorZac Medico <zmedico@gentoo.org>
Thu, 20 Mar 2008 21:31:38 +0000 (21:31 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 Mar 2008 21:31:38 +0000 (21:31 -0000)
match before rejecting other available packages.

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

pym/_emerge/__init__.py

index c9c9eb7f28a248e267af682b86498ecfe865c493..356acef602575c7b8e4b370ae630a4b8f504d830 100644 (file)
@@ -2714,7 +2714,7 @@ class depgraph(object):
                                                        (myarg and not selective)
                                                if not reinstall_for_flags and \
                                                        not must_reinstall and \
-                                                       vardb.cpv_exists(cpv):
+                                                       (vardb.cpv_exists(cpv) and vardb.match(atom)):
                                                        break
                                        if installed:
                                                must_reinstall = empty or \