summaryrefslogtreecommitdiffstats
path: root/pym/portage.py
diff options
context:
space:
mode:
Diffstat (limited to 'pym/portage.py')
-rw-r--r--pym/portage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 1bbd32353..1995c4945 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -6163,9 +6163,9 @@ def getmaskingstatus(mycpv, settings=None, portdb=None):
kmask="~"+myarch
break
- # Assume that the user doesn't want to be bothered about
- # KEYWORDS of packages that are already installed.
- if kmask and not installed:
+ # Only show KEYWORDS masks for installed packages
+ # if they're not masked for any other reason.
+ if kmask and (not installed or not rValue):
rValue.append(kmask+" keyword")
return rValue