diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-06-11 09:33:41 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-06-11 09:33:41 +0000 |
commit | 96dbb661852d1191c76501259ba8b06a1c43c8f3 (patch) | |
tree | be6370ca2e42021071fddba91ae83a513cbb182c | |
parent | 7960f8181af3441265035b1ff2cb717136857191 (diff) | |
download | portage-96dbb661852d1191c76501259ba8b06a1c43c8f3.tar.gz portage-96dbb661852d1191c76501259ba8b06a1c43c8f3.tar.bz2 portage-96dbb661852d1191c76501259ba8b06a1c43c8f3.zip |
Handle InvalidDependString in _package_cache.__setitem__().
svn path=/main/trunk/; revision=10648
-rw-r--r-- | pym/_emerge/__init__.py | 11 |
1 files 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): |