From: Christian Ruppert Date: Thu, 24 Feb 2011 21:39:46 +0000 (+0100) Subject: Fix package.mask check X-Git-Tag: gentoolkit-0.3.0~11 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=d5f8e2ac1754a42e9a5edcd2ebb4fa30e3134e5b;p=gentoolkit.git Fix package.mask check getmaskingstatus() returns an array so it always returned False if the array has multiple items --- diff --git a/pym/gentoolkit/eshowkw/keywords_content.py b/pym/gentoolkit/eshowkw/keywords_content.py index 7cf53e7..0dae2fb 100644 --- a/pym/gentoolkit/eshowkw/keywords_content.py +++ b/pym/gentoolkit/eshowkw/keywords_content.py @@ -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