Fix package.mask check
authorChristian Ruppert <idl0r@gentoo.org>
Thu, 24 Feb 2011 21:39:46 +0000 (22:39 +0100)
committerChristian Ruppert <idl0r@gentoo.org>
Thu, 24 Feb 2011 21:39:46 +0000 (22:39 +0100)
getmaskingstatus() returns an array so it always returned False if the array has
multiple items

pym/gentoolkit/eshowkw/keywords_content.py

index 7cf53e7682d76bad301fab018cc7d8798e136d5d..0dae2fb0709c5f93a079d08c6602ce48d1a4f048 100644 (file)
@@ -138,7 +138,7 @@ class keywords_content:
                        """Figure out if package is pmasked."""
                        try:
                                mysettings = port.config(local_config=False)
-                               if port.getmaskingstatus(cpv, settings=mysettings) == ['package.mask']:
+                               if "package.mask" in port.getmaskingstatus(cpv, settings=mysettings):
                                        return True
                        except:
                                # occurs when package is not known by portdb