Handle InvalidDependString.
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Jun 2008 09:15:39 +0000 (09:15 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Jun 2008 09:15:39 +0000 (09:15 -0000)
svn path=/main/trunk/; revision=10645

pym/_emerge/__init__.py

index 63a0f34d1d9b3229c98c4b36e6f922ea910b2a24..0a5687e251293f0edc5d7ae8a4756d08de2c2507 100644 (file)
@@ -3538,8 +3538,13 @@ class depgraph(object):
                                                                        "ebuild", pkg.root_config)
                                                        except KeyError:
                                                                ebuild = None
-                                                       if ebuild is None or \
-                                                               not visible(pkgsettings, ebuild):
+                                                       else:
+                                                               try:
+                                                                       if not visible(pkgsettings, ebuild):
+                                                                               ebuild = None
+                                                               except portage.exception.InvalidDependString:
+                                                                               ebuild = None
+                                                       if ebuild is None:
                                                                self._masked_installed.add(pkg)
 
                                        blocker_atoms = None