From d5f8e2ac1754a42e9a5edcd2ebb4fa30e3134e5b Mon Sep 17 00:00:00 2001 From: Christian Ruppert Date: Thu, 24 Feb 2011 22:39:46 +0100 Subject: [PATCH] Fix package.mask check getmaskingstatus() returns an array so it always returned False if the array has multiple items --- pym/gentoolkit/eshowkw/keywords_content.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.26.2