From: Zac Medico Date: Sat, 15 Nov 2008 18:53:05 +0000 (-0000) Subject: Bug #246821 - Avoid TypeError from binarytree.isremote() by returning early X-Git-Tag: v2.1.6_rc1~59 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=9f47b473c185c6b4207db6dc8f20cc000af44887;p=portage.git Bug #246821 - Avoid TypeError from binarytree.isremote() by returning early if self._remotepkgs is None due to PORTAGE_BINHOST being unset. (trunk r11951) svn path=/main/branches/2.1.6/; revision=11952 --- 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 \