diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-07-30 02:55:06 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-07-30 02:55:06 +0000 |
commit | 4705aebba0bab2ac7aa97aa1f3d6708e4340b3f3 (patch) | |
tree | eaaf235c1792a4927466cbd5de766549b17ddddc | |
parent | 87acc0ea4786c928d68a3522afcd59e07415cc50 (diff) | |
download | portage-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
-rw-r--r-- | pym/portage.py | 6 |
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() |