Handle InvalidDependString in _package_cache.__setitem__(). (trunk r10648) v2.1.5.5
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Jun 2008 09:36:18 +0000 (09:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Jun 2008 09:36:18 +0000 (09:36 -0000)
svn path=/main/branches/2.1.2/; revision=10649

bin/emerge

index b7a3c153209ad02e90224b6b75c04632359e4984..db6985905361f28c6c0fbfabe73a60ce45af40ae 100755 (executable)
@@ -5747,10 +5747,13 @@ class depgraph(object):
                def __setitem__(self, k, v):
                        dict.__setitem__(self, k, v)
                        root_config = self._depgraph.roots[v.root]
-                       if visible(root_config.settings, v) and \
-                               not (v.installed and \
-                               v.root_config.settings._getMissingKeywords(v.cpv, v.metadata)):
-                               root_config.visible_pkgs.cpv_inject(v)
+                       try:
+                               if visible(root_config.settings, v) and \
+                                       not (v.installed and \
+                                       v.root_config.settings._getMissingKeywords(v.cpv, v.metadata)):
+                                       root_config.visible_pkgs.cpv_inject(v)
+                       except portage_exception.InvalidDependString:
+                               pass
 
 class RepoDisplay(object):
        def __init__(self, roots):