diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-07 22:08:02 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-07 22:08:02 +0000 |
commit | 6806009d322612ea97661d68d58a8195d0318dd6 (patch) | |
tree | 18ec8f5a61deb298a617746b2d884f2c3ed92779 | |
parent | 376cbb47bfa3e85ee72be801b731cd504dd83ed1 (diff) | |
download | portage-6806009d322612ea97661d68d58a8195d0318dd6.tar.gz portage-6806009d322612ea97661d68d58a8195d0318dd6.tar.bz2 portage-6806009d322612ea97661d68d58a8195d0318dd6.zip |
Restore profile masking support to getmaskingstatus().
svn path=/main/trunk/; revision=7999
-rw-r--r-- | pym/portage/__init__.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 788ff728b..e2f498760 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -5075,6 +5075,18 @@ def getmaskingstatus(mycpv, settings=None, portdb=None): rValue = [] + # profile checking + revmaskdict=settings.prevmaskdict + if revmaskdict.has_key(mycp): + for x in revmaskdict[mycp]: + if x[0]=="*": + myatom = x[1:] + else: + myatom = x + if not match_to_list(mycpv, [myatom]): + rValue.append("profile") + break + # package.mask checking maskdict=settings.pmaskdict unmaskdict=settings.punmaskdict |