summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-06-11 09:15:39 +0000
committerZac Medico <zmedico@gentoo.org>2008-06-11 09:15:39 +0000
commitcaf77ebfd6e7338c33a19f9b65fed826bd12f8b6 (patch)
tree8d94e9bf15f95d3ed15966bbca10fd108853dc34
parent8809ebf154b61bfa600c671a525399f1bfa4bcba (diff)
downloadportage-caf77ebfd6e7338c33a19f9b65fed826bd12f8b6.tar.gz
portage-caf77ebfd6e7338c33a19f9b65fed826bd12f8b6.tar.bz2
portage-caf77ebfd6e7338c33a19f9b65fed826bd12f8b6.zip
Handle InvalidDependString.
svn path=/main/trunk/; revision=10645
-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