svn path=/main/trunk/; revision=3726
print "!!! One of the following masked packages is required to complete your request:"
oldcomment = ""
for p in alleb:
- mreasons = portage.getmaskingstatus(p)
+ mreasons = portage.getmaskingstatus(p,
+ settings=self.settings, portdb=self.portdb)
print "- "+p+" (masked by: "+string.join(mreasons, ", ")+")"
comment = portage.getmaskingreason(p)
if comment and comment != oldcomment:
i = i + 1
return None
-def getmaskingstatus(mycpv):
- global portdb, settings
+def getmaskingstatus(mycpv, settings=None, portdb=None):
+ if settings is None:
+ settings = globals()["settings"]
+ if portdb is None:
+ portdb = globals()["portdb"]
mysplit = catpkgsplit(mycpv)
if not mysplit:
raise ValueError("invalid CPV: %s" % mycpv)