diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-10-11 05:19:14 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-10-11 05:19:14 +0000 |
commit | c20fbdca610df340787ec58b2865a48bc6e17da4 (patch) | |
tree | 07e127d5b9799fe533fe7899083d5623f662d95b | |
parent | 2b207e10f5d3712781ff96a76d20746ae3874fc2 (diff) | |
download | portage-c20fbdca610df340787ec58b2865a48bc6e17da4.tar.gz portage-c20fbdca610df340787ec58b2865a48bc6e17da4.tar.bz2 portage-c20fbdca610df340787ec58b2865a48bc6e17da4.zip |
Raise a PackageNotFound exception instead of a ValueError
in order to avoid ambiguity if an unexpected ValueError
occurs.
svn path=/main/trunk/; revision=8043
-rw-r--r-- | pym/emerge/__init__.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py index 2cbe18987..e681fd231 100644 --- a/pym/emerge/__init__.py +++ b/pym/emerge/__init__.py @@ -2083,7 +2083,7 @@ class depgraph(object): if not matched_packages: if raise_on_missing: - raise ValueError + raise portage.exception.PackageNotFound(x) if not arg: xinfo='"'+x+'"' else: @@ -2820,7 +2820,7 @@ class depgraph(object): self.target_root, mydep, raise_on_missing=True, arg=mydep): print >> sys.stderr, "\n\n!!! Problem resolving dependencies for", mydep return 0 - except ValueError: + except portage.exception.PackageNotFound: missing_atoms.append(mydep) if not self.validate_blockers(): |