summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-03 20:47:52 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-03 20:47:52 +0000
commit5af2fbc32625fb98770136e09fc14f126b7cef67 (patch)
tree992fc7fa692d3b448bcc064a249e8dd166cffbad
parent83312916228666592d472f169411a9a786d2d289 (diff)
downloadportage-5af2fbc32625fb98770136e09fc14f126b7cef67.tar.gz
portage-5af2fbc32625fb98770136e09fc14f126b7cef67.tar.bz2
portage-5af2fbc32625fb98770136e09fc14f126b7cef67.zip
When aux_get can't find a matching ebuild, simply raise a KeyError(cpv) and don't dump redundant messages to stderr unless --debug is enabled.
svn path=/main/trunk/; revision=4393
-rw-r--r--pym/portage.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index e8bb3e5ff..92b579286 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -4728,9 +4728,9 @@ class portdbapi(dbapi):
if not myebuild:
writemsg("!!! aux_get(): ebuild path for '%(cpv)s' not specified:\n" % {"cpv":mycpv},
- noiselevel=-1)
- writemsg("!!! %s\n" % myebuild, noiselevel=-1)
- raise KeyError, "'%(cpv)s' at %(path)s" % {"cpv":mycpv,"path":myebuild}
+ noiselevel=1)
+ writemsg("!!! %s\n" % myebuild, noiselevel=1)
+ raise KeyError(mycpv)
myManifestPath = string.join(myebuild.split("/")[:-1],"/")+"/Manifest"
if "gpg" in self.mysettings.features: