From: Zac Medico Date: Sun, 3 Sep 2006 20:47:52 +0000 (-0000) Subject: When aux_get can't find a matching ebuild, simply raise a KeyError(cpv) and don't... X-Git-Tag: v2.1.1~27 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5af2fbc32625fb98770136e09fc14f126b7cef67;p=portage.git 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 --- 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: