Restore profile masking support to getmaskingstatus().
authorZac Medico <zmedico@gentoo.org>
Sun, 7 Oct 2007 22:08:02 +0000 (22:08 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 7 Oct 2007 22:08:02 +0000 (22:08 -0000)
svn path=/main/trunk/; revision=7999

pym/portage/__init__.py

index 788ff728b5781a683cd4092498841a546edf8990..e2f4987608d6f7d22470f521141dc02d20b9fe5a 100644 (file)
@@ -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