diff options
-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): |