From 01ae8fc886a6aaf9bdf40dcf939a66a79076f1f3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 15 Nov 2008 18:51:59 +0000 Subject: Bug #246821 - Avoid TypeError from binarytree.isremote() by returning early if self._remotepkgs is None due to PORTAGE_BINHOST being unset. svn path=/main/trunk/; revision=11951 --- pym/portage/dbapi/bintree.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pym') diff --git a/pym/portage/dbapi/bintree.py b/pym/portage/dbapi/bintree.py index 96a5b0afa..000624819 100644 --- a/pym/portage/dbapi/bintree.py +++ b/pym/portage/dbapi/bintree.py @@ -970,7 +970,7 @@ class binarytree(object): def isremote(self, pkgname): """Returns true if the package is kept remotely and it has not been downloaded (or it is only partially downloaded).""" - if pkgname not in self._remotepkgs: + if self._remotepkgs is None or pkgname not in self._remotepkgs: return False pkg_path = self.getname(pkgname) if os.path.exists(pkg_path) and \ -- cgit v1.2.3-1-g7c22