From 5af2fbc32625fb98770136e09fc14f126b7cef67 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 3 Sep 2006 20:47:52 +0000 Subject: 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 --- pym/portage.py | 6 +++--- 1 file 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: -- cgit v1.2.3-1-g7c22