diff options
| author | Christian Ruppert <idl0r@gentoo.org> | 2011-02-24 22:39:46 +0100 |
|---|---|---|
| committer | Christian Ruppert <idl0r@gentoo.org> | 2011-02-24 22:39:46 +0100 |
| commit | d5f8e2ac1754a42e9a5edcd2ebb4fa30e3134e5b (patch) | |
| tree | 208c3ad0ace1f21fcbc9d71d5d75c8b0c976a4ec | |
| parent | 0a893eb462f9521492ace1d931c6e75efa3304ce (diff) | |
| download | gentoolkit-d5f8e2ac1754a42e9a5edcd2ebb4fa30e3134e5b.tar.gz | |
Fix package.mask check
getmaskingstatus() returns an array so it always returned False if the array has
multiple items
| -rw-r--r-- | pym/gentoolkit/eshowkw/keywords_content.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
