mreasons = portage.getmaskingstatus(p,
settings=pkgsettings, portdb=portdb)
print "- "+p+" (masked by: "+string.join(mreasons, ", ")+")"
- comment = portage.getmaskingreason(p,
- settings=pkgsettings, portdb=portdb)
- if comment and comment != oldcomment:
- print comment
- oldcomment = comment
+ if "package.mask" in mreasons:
+ comment = portage.getpmaskcomment(p,
+ settings=pkgsettings, portdb=portdb)
+ if comment and comment != oldcomment:
+ print comment
+ oldcomment = comment
print
print "For more information, see MASKED PACKAGES section in the emerge man page or "
print "refer to the Gentoo Handbook."
else:
return mykey
-def getmaskingreason(mycpv, settings=None, portdb=None):
+def getpmaskcomment(mycpv, settings=None, portdb=None):
from portage_util import grablines
if settings is None:
settings = globals()["settings"]
return comment
i = i + 1
return None
+# Compability name
+getmaskingreason=getpmaskcomment
def getmaskingstatus(mycpv, settings=None, portdb=None):
if settings is None:
license_req = dep_check(mylicense, None, settings,
str_matches=str_matches)[1]
if license_req:
- rValue.append(" ".join(license_req) + " license(s)")
+ rValue += [x+" license" for x in license_req]
return rValue