From 004595259e55eeded727eea18497dc460259803b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 31 May 2007 21:28:06 +0000 Subject: [PATCH] Raise a KeyError from bindbapi.aux_get() when appropriate. svn path=/main/trunk/; revision=6699 --- pym/portage/dbapi/bintree.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index d6c4b1418..98bc8ddef 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -46,6 +46,8 @@ class bindbapi(fakedbapi): if not self.bintree._remotepkgs or \ not self.bintree.isremote(mycpv): tbz2_path = self.bintree.getname(mycpv) + if not os.path.exists(mycpv): + raise KeyError(mycpv) getitem = portage.xpak.tbz2(tbz2_path).getfile else: getitem = self.bintree._remotepkgs[mycpv].get -- 2.26.2