When aux_get can't find a matching ebuild, simply raise a KeyError(cpv) and don't...
authorZac Medico <zmedico@gentoo.org>
Sun, 3 Sep 2006 20:47:52 +0000 (20:47 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 3 Sep 2006 20:47:52 +0000 (20:47 -0000)
svn path=/main/trunk/; revision=4393

pym/portage.py

index e8bb3e5ffa6947503bc4393f9983e1e311913943..92b5792866d88a39f3488f811ab855fe11055adf 100644 (file)
@@ -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: