diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-05-28 08:52:07 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-05-28 08:52:07 +0000 |
commit | fc4967f92ddfea639d1a09c28a61508267ee271c (patch) | |
tree | 6a1b5eca88df5862e9c7fd1e3d58730b152ecb5c /pym/portage.py | |
parent | b1680637e07f76762f0188ec3ce9e27fd247805f (diff) | |
download | portage-fc4967f92ddfea639d1a09c28a61508267ee271c.tar.gz portage-fc4967f92ddfea639d1a09c28a61508267ee271c.tar.bz2 portage-fc4967f92ddfea639d1a09c28a61508267ee271c.zip |
Bug #223447 - Adjust the "installed packages are masked" display to recognize
packages that are masked by keywords and are eligible for uninstallation by
depclean. This is a workaround for the fact that depclean may fail to
recognize that the package is eligible for uninstall due to differences in
visibility filtering which can lead to differences in || dep evaluation.
TODO: Share visibility code to fix this inconsistency. (trunk r10465)
svn path=/main/branches/2.1.2/; revision=10466
Diffstat (limited to 'pym/portage.py')
-rw-r--r-- | pym/portage.py | 6 |
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 |