From: Zac Medico Date: Mon, 30 Jul 2007 02:55:06 +0000 (-0000) Subject: Instead of calling sys.exit() when aux_get() fails inside getfetchlist(), convert... X-Git-Tag: v2.1.2.11~77 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4705aebba0bab2ac7aa97aa1f3d6708e4340b3f3;p=portage.git 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 --- 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()