Make the non --update package selection logic avoid installed packages if
authorZac Medico <zmedico@gentoo.org>
Thu, 20 May 2010 23:45:24 +0000 (16:45 -0700)
committerZac Medico <zmedico@gentoo.org>
Thu, 20 May 2010 23:45:24 +0000 (16:45 -0700)
they are masked. Thanks to Daniel Robbins for reporting.

pym/_emerge/depgraph.py

index ecc321c053517010073bd9eb76cfc5b2ecb3ee35..c102a7a2df40ad8530c25ea7ffd9011f47a064eb 100644 (file)
@@ -2715,7 +2715,7 @@ class depgraph(object):
 
                        if avoid_update:
                                for pkg in matched_packages:
-                                       if pkg.installed:
+                                       if pkg.installed and pkg.visible:
                                                return pkg, existing_node
 
                        bestmatch = portage.best(