From 6806009d322612ea97661d68d58a8195d0318dd6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 7 Oct 2007 22:08:02 +0000 Subject: [PATCH] Restore profile masking support to getmaskingstatus(). svn path=/main/trunk/; revision=7999 --- pym/portage/__init__.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.26.2