summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pym/_emerge/__init__.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py
index 63a0f34d1..0a5687e25 100644
--- a/pym/_emerge/__init__.py
+++ b/pym/_emerge/__init__.py
@@ -3538,8 +3538,13 @@ class depgraph(object):
"ebuild", pkg.root_config)
except KeyError:
ebuild = None
- if ebuild is None or \
- not visible(pkgsettings, ebuild):
+ else:
+ try:
+ if not visible(pkgsettings, ebuild):
+ ebuild = None
+ except portage.exception.InvalidDependString:
+ ebuild = None
+ if ebuild is None:
self._masked_installed.add(pkg)
blocker_atoms = None