summaryrefslogtreecommitdiff
path: root/pym
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 /pym
parentBug #225767 - Suppress warnings for installed packages masked by keywords (diff)
downloadportage-idfetch-caf77ebfd6e7338c33a19f9b65fed826bd12f8b6.tar.gz
portage-idfetch-caf77ebfd6e7338c33a19f9b65fed826bd12f8b6.tar.bz2
portage-idfetch-caf77ebfd6e7338c33a19f9b65fed826bd12f8b6.zip
Handle InvalidDependString.
svn path=/main/trunk/; revision=10645
Diffstat (limited to 'pym')
-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 63a0f34d..0a5687e2 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