aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2012-12-02 22:15:05 (GMT)
committerZac Medico <zmedico@gentoo.org>2012-12-02 22:15:05 (GMT)
commit4551596377cf01904245611145be896314254582 (patch)
tree4c592716671501e7e4a15d01f6a29474e3799937
parentemerge --depclean: rm unavailable slot bug 445506 (diff)
downloadportage-4551596377cf01904245611145be896314254582.zip
portage-4551596377cf01904245611145be896314254582.tar.gz
portage-4551596377cf01904245611145be896314254582.tar.bz2
show_masked_packages: handle missing license file
This will fix bug #445628.
-rw-r--r--pym/_emerge/depgraph.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 65a94ab..568a116 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -7575,9 +7575,11 @@ def show_masked_packages(masked_packages):
shown_comments.add(comment)
portdb = root_config.trees["porttree"].dbapi
for l in missing_licenses:
- l_path = portdb.findLicensePath(l)
if l in shown_licenses:
continue
+ l_path = portdb.findLicensePath(l)
+ if l_path is None:
+ continue
msg = ("A copy of the '%s' license" + \
" is located at '%s'.\n\n") % (l, l_path)
writemsg(msg, noiselevel=-1)