diff options
author | Zac Medico <zmedico@gentoo.org> | 2012-12-02 14:15:05 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2012-12-02 14:15:05 -0800 |
commit | 4551596377cf01904245611145be896314254582 (patch) | |
tree | 4c592716671501e7e4a15d01f6a29474e3799937 | |
parent | emerge --depclean: rm unavailable slot bug 445506 (diff) | |
download | portage-4551596377cf01904245611145be896314254582.tar.gz portage-4551596377cf01904245611145be896314254582.tar.bz2 portage-4551596377cf01904245611145be896314254582.zip |
show_masked_packages: handle missing license file
This will fix bug #445628.
-rw-r--r-- | pym/_emerge/depgraph.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py index 65a94ab37..568a11682 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) |