Fix CHOST masking logic wrt installed packages so that it's consistent
authorZac Medico <zmedico@gentoo.org>
Sun, 10 Feb 2008 03:14:44 +0000 (03:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 10 Feb 2008 03:14:44 +0000 (03:14 -0000)
between visible() and get_masking_status().

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

pym/_emerge/__init__.py

index d285e9c843350e1ceda07eae4d6dfacff4f4d224..105168870d025a0ae7f1de5734560b3c0b02bb82 100644 (file)
@@ -1038,7 +1038,7 @@ def get_masking_status(pkg, pkgsettings, root_config):
                pkg.cpv, metadata=pkg.metadata, settings=pkgsettings,
                portdb=root_config.trees["porttree"].dbapi)
 
-       if pkg.built and \
+       if pkg.built and not pkg.installed and \
                pkg.metadata["CHOST"] != root_config.settings["CHOST"]:
                mreasons.append("CHOST: %s" % \
                        pkg.metadata["CHOST"])