diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-01 19:25:18 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-01 19:25:18 +0000 |
commit | b33f8193db96ed4a6267f56fafa8f681d99771b8 (patch) | |
tree | 3e8ea2b3328d248d4194a2c623f822c9fb4b8b8c | |
parent | 309c4295f0d08454717deb6367cb4aa278fefed3 (diff) | |
download | portage-b33f8193db96ed4a6267f56fafa8f681d99771b8.tar.gz portage-b33f8193db96ed4a6267f56fafa8f681d99771b8.tar.bz2 portage-b33f8193db96ed4a6267f56fafa8f681d99771b8.zip |
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
-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 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() |