From: Zac Medico Date: Fri, 1 Jun 2007 19:25:18 +0000 (-0000) Subject: Instead of calling sys.exit() when aux_get() fails inside getfetchlist(), convert... X-Git-Tag: v2.1.2.10~22 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=b33f8193db96ed4a6267f56fafa8f681d99771b8;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. (trunk r6708) svn path=/main/branches/2.1.2/; revision=6715 --- diff --git a/pym/portage.py b/pym/portage.py index 8d42596f2..8cc167dbf 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -5974,8 +5974,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()