From 96dbb661852d1191c76501259ba8b06a1c43c8f3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Jun 2008 09:33:41 +0000 Subject: [PATCH] Handle InvalidDependString in _package_cache.__setitem__(). svn path=/main/trunk/; revision=10648 --- pym/_emerge/__init__.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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): -- 2.26.2