summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorMarius Mauch <genone@gentoo.org>2006-10-26 16:27:25 +0000
committerMarius Mauch <genone@gentoo.org>2006-10-26 16:27:25 +0000
commitffa97dcb07ed29a376ced8a38fafb0ec138a6084 (patch)
tree8f2bd5c6eb44a6468fbc058d125f783e4db68fbf /bin
parent6f41323067c689a9c87516b298f0f9498d3e35ef (diff)
downloadportage-ffa97dcb07ed29a376ced8a38fafb0ec138a6084.tar.gz
portage-ffa97dcb07ed29a376ced8a38fafb0ec138a6084.tar.bz2
portage-ffa97dcb07ed29a376ced8a38fafb0ec138a6084.zip
show licenses or pointer to license files on 'masked by' message
svn path=/main/trunk/; revision=4827
Diffstat (limited to 'bin')
-rwxr-xr-xbin/emerge14
1 files changed, 14 insertions, 0 deletions
diff --git a/bin/emerge b/bin/emerge
index 440a6cb87..32bee88b8 100755
--- a/bin/emerge
+++ b/bin/emerge
@@ -1358,6 +1358,7 @@ class depgraph:
print "\n!!! "+red("All ebuilds that could satisfy ")+green(xinfo)+red(" have been masked.")
print "!!! One of the following masked packages is required to complete your request:"
oldcomment = ""
+ shown_licenses = []
for p in alleb:
mreasons = portage.getmaskingstatus(p,
settings=pkgsettings, portdb=portdb)
@@ -1368,6 +1369,19 @@ class depgraph:
if comment and comment != oldcomment:
print comment
oldcomment = comment
+ licdict = portage.getlicensetexts(p, settings=pkgsettings, portdb=portdb, onlymasked=True)
+ for lic in licdict.keys():
+ if lic+" license" in mreasons and not lic in shown_licenses:
+ if len(licdict[lic][1]) > 2000:
+ print "Please read the text of license %s in %s" % (lic, licdict[lic][0])
+ print
+ else:
+ print "License text for license %s:" % lic
+ print
+ print licdict[lic][1]
+ print
+ shown_licenses.append(lic)
+
print
print "For more information, see MASKED PACKAGES section in the emerge man page or "
print "refer to the Gentoo Handbook."