projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
376cbb4
)
Restore profile masking support to getmaskingstatus().
author
Zac Medico
<zmedico@gentoo.org>
Sun, 7 Oct 2007 22:08:02 +0000
(22:08 -0000)
committer
Zac 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
patch
|
blob
|
history
diff --git
a/pym/portage/__init__.py
b/pym/portage/__init__.py
index 788ff728b5781a683cd4092498841a546edf8990..e2f4987608d6f7d22470f521141dc02d20b9fe5a 100644
(file)
--- 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