Handle InvalidDependString in _package_cache.__setitem__().
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Jun 2008 09:33:41 +0000 (09:33 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Jun 2008 09:33:41 +0000 (09:33 -0000)
svn path=/main/trunk/; revision=10648

pym/_emerge/__init__.py

index 133c60d21ad5453669e7b50a5331d1b580401740..1b294faa40ef096295e76d31cc7564bf6b649cb2 100644 (file)
@@ -5655,10 +5655,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):