diff options
Diffstat (limited to 'pym/portage/dbapi/bintree.py')
-rw-r--r-- | pym/portage/dbapi/bintree.py | 2 |
1 files changed, 2 insertions, 0 deletions
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 |