summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-25 22:20:43 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-25 22:20:43 -0700
commitd06aed54e0bf0b74eb34b5ca65e1e6991afb030b (patch)
treea65563890937bd9bae89d9a9ec6a2f2b946e1340
parentac72755e1671842352f9f38f3c868c2d123139cc (diff)
downloadportage-d06aed54e0bf0b74eb34b5ca65e1e6991afb030b.tar.gz
portage-d06aed54e0bf0b74eb34b5ca65e1e6991afb030b.tar.bz2
portage-d06aed54e0bf0b74eb34b5ca65e1e6991afb030b.zip
Just raise InvalidDependString in cases when it shouldn't happen since
the package is not installed and it should have been validated and masked already if necessary.
-rw-r--r--pym/_emerge/depgraph.py18
1 files changed, 7 insertions, 11 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index 0dad451e2..9ecd911d5 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -737,9 +737,8 @@ class depgraph(object):
arg_atoms = list(self._iter_atoms_for_pkg(pkg))
except portage.exception.InvalidDependString as e:
if not pkg.installed:
- show_invalid_depstring_notice(
- pkg, pkg.metadata["PROVIDE"], str(e))
- return 0
+ # should have been masked before it was selected
+ raise
del e
if not pkg.onlydeps:
@@ -880,10 +879,9 @@ class depgraph(object):
settings.setinst(pkg.cpv, pkg.metadata)
settings.lock()
except portage.exception.InvalidDependString as e:
- show_invalid_depstring_notice(
- pkg, pkg.metadata["PROVIDE"], str(e))
- del e
- return 0
+ if not pkg.installed:
+ # should have been masked before it was selected
+ raise
if arg_atoms:
self._dynamic_config._set_nodes.add(pkg)
@@ -4700,10 +4698,8 @@ class depgraph(object):
myfilesdict = portdb.getfetchsizes(pkg_key,
useflags=pkg_use, debug=self._frozen_config.edebug)
except portage.exception.InvalidDependString as e:
- src_uri = portdb.aux_get(pkg_key, ["SRC_URI"])[0]
- show_invalid_depstring_notice(x, src_uri, str(e))
- del e
- return 1
+ # should have been masked before it was selected
+ raise
if myfilesdict is None:
myfilesdict="[empty/missing/bad digest]"
else: