From caf77ebfd6e7338c33a19f9b65fed826bd12f8b6 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Jun 2008 09:15:39 +0000 Subject: [PATCH] Handle InvalidDependString. svn path=/main/trunk/; revision=10645 --- pym/_emerge/__init__.py | 9 +++++++-- 1 file 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 -- 2.26.2