From 4705aebba0bab2ac7aa97aa1f3d6708e4340b3f3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Mon, 30 Jul 2007 02:55:06 +0000 Subject: [PATCH] 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 --- pym/portage.py | 6 ++++-- 1 file 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() -- 2.26.2