From: Zac Medico Date: Sat, 15 Nov 2008 18:51:59 +0000 (-0000) Subject: Bug #246821 - Avoid TypeError from binarytree.isremote() by returning early X-Git-Tag: v2.2_rc15~41 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=01ae8fc886a6aaf9bdf40dcf939a66a79076f1f3;p=portage.git 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 --- 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 \