Catch a potential InvalidDependString exception.
authorZac Medico <zmedico@gentoo.org>
Tue, 20 Mar 2007 21:58:46 +0000 (21:58 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 20 Mar 2007 21:58:46 +0000 (21:58 -0000)
svn path=/main/trunk/; revision=6258

pym/emerge/__init__.py

index 5b38f95afbbdde45e2e2772b1bb6ae71dcbeafb3..bd700ff927495af0be595000638194b201df33b2 100644 (file)
@@ -1694,8 +1694,14 @@ class depgraph:
                                                                                oldcomment = comment
                                                                licenses = portdb.aux_get(p, ["LICENSE"])[0]
                                                                missing_licenses = []
-                                                               for l in pkgsettings.getMissingLicenses(
-                                                                       licenses, p):
+                                                               try:
+                                                                       missing_licenses = \
+                                                                       pkgsettings.getMissingLicenses(licenses, p)
+                                                               except portage.exception.InvalidDependString:
+                                                                       # This will have already been reported
+                                                                       # above via mreasons.
+                                                                       pass
+                                                               for l in missing_licenses:
                                                                        l_path = portdb.findLicensePath(l)
                                                                        if l in shown_licenses:
                                                                                continue