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

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

bin/emerge

index 12e756357b3ab9c0fbc5cd6cc737e8986fd2b0bb..51b1a56df8c2a6d13e18b6e6d77b42ec3f5f30c0 100755 (executable)
@@ -1153,7 +1153,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"])