From: Zac Medico Date: Thu, 31 May 2007 21:28:06 +0000 (-0000) Subject: Raise a KeyError from bindbapi.aux_get() when appropriate. X-Git-Tag: v2.2_pre1~1318 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=004595259e55eeded727eea18497dc460259803b;p=portage.git Raise a KeyError from bindbapi.aux_get() when appropriate. svn path=/main/trunk/; revision=6699 --- 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