From: Zac Medico Date: Wed, 11 Jun 2008 09:33:41 +0000 (-0000) Subject: Handle InvalidDependString in _package_cache.__setitem__(). X-Git-Tag: v2.2_rc1~41 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=96dbb661852d1191c76501259ba8b06a1c43c8f3;p=portage.git Handle InvalidDependString in _package_cache.__setitem__(). svn path=/main/trunk/; revision=10648 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 133c60d21..1b294faa4 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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):