summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2006-09-23 10:47:11 +0000
committerZac Medico <zmedico@gentoo.org>2006-09-23 10:47:11 +0000
commit6ce4efad9209f6ff6d6067dba09abebc19b206b8 (patch)
tree0a2d8dc2f18ee162902bc24ea55ecc9430112da7
parent4069541d2f5e11371b014f49b5057e1f30f28e05 (diff)
downloadportage-6ce4efad9209f6ff6d6067dba09abebc19b206b8.tar.gz
portage-6ce4efad9209f6ff6d6067dba09abebc19b206b8.tar.bz2
portage-6ce4efad9209f6ff6d6067dba09abebc19b206b8.zip
Make doebuild_environment raise an exception so that we never have to check the return value.
svn path=/main/trunk/; revision=4516
-rw-r--r--pym/portage.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pym/portage.py b/pym/portage.py
index b8bfa118e..4d07a3bc6 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -2530,9 +2530,8 @@ def doebuild_environment(myebuild, mydo, myroot, mysettings, debug, use_cache, m
mycpv = cat+"/"+mypv
mysplit=pkgsplit(mypv,silent=0)
if mysplit is None:
- writemsg("!!! Error: PF is null '%s'; exiting.\n" % mypv,
- noiselevel=-1)
- return 1
+ raise portage_exception.IncorrectParameter(
+ "Invalid ebuild path: '%s'" % myebuild)
if mydo != "depend":
# XXX: We're doing a little hack here to curtain the gvisible locking