summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-30 02:55:06 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-30 02:55:06 +0000
commit4705aebba0bab2ac7aa97aa1f3d6708e4340b3f3 (patch)
treeeaaf235c1792a4927466cbd5de766549b17ddddc /pym
parent87acc0ea4786c928d68a3522afcd59e07415cc50 (diff)
downloadportage-4705aebba0bab2ac7aa97aa1f3d6708e4340b3f3.tar.gz
portage-4705aebba0bab2ac7aa97aa1f3d6708e4340b3f3.tar.bz2
portage-4705aebba0bab2ac7aa97aa1f3d6708e4340b3f3.zip
Instead of calling sys.exit() when aux_get() fails inside getfetchlist(), convert the KeyError to an InvalidDependString exception since callers already handle it. (branches/2.1.2 r6715)
svn path=/main/branches/2.1.2.9/; revision=7440
Diffstat (limited to 'pym')
-rw-r--r--pym/portage.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/pym/portage.py b/pym/portage.py
index 2f409ee75..db74bc8ea 100644
--- a/pym/portage.py
+++ b/pym/portage.py
@@ -5971,8 +5971,10 @@ class portdbapi(dbapi):
try:
myuris = self.aux_get(mypkg, ["SRC_URI"], mytree=mytree)[0]
except KeyError:
- print red("getfetchlist():")+" aux_get() error reading "+mypkg+"; aborting."
- sys.exit(1)
+ # Convert this to an InvalidDependString exception since callers
+ # already handle it.
+ raise portage_exception.InvalidDependString(
+ "getfetchlist(): aux_get() error reading "+mypkg+"; aborting.")
if useflags is None:
useflags = mysettings["USE"].split()