svn path=/main/trunk/; revision=3727
mreasons = portage.getmaskingstatus(p,
settings=self.settings, portdb=self.portdb)
print "- "+p+" (masked by: "+string.join(mreasons, ", ")+")"
- comment = portage.getmaskingreason(p)
+ comment = portage.getmaskingreason(p,
+ settings=self.settings, portdb=self.portdb)
if comment and comment != oldcomment:
print comment
oldcomment = comment
else:
return mykey
-def getmaskingreason(mycpv):
+def getmaskingreason(mycpv, settings=None, portdb=None):
from portage_util import grablines
- global portdb, settings
+ 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)