public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] portage r11952 - main/branches/2.1.6/pym/portage/dbapi
@ 2008-11-15 18:53 Zac Medico (zmedico)
  0 siblings, 0 replies; only message in thread
From: Zac Medico (zmedico) @ 2008-11-15 18:53 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2008-11-15 18:53:05 +0000 (Sat, 15 Nov 2008)
New Revision: 11952

Modified:
   main/branches/2.1.6/pym/portage/dbapi/bintree.py
Log:
Bug #246821 - Avoid TypeError from binarytree.isremote() by returning early
if self._remotepkgs is None due to PORTAGE_BINHOST being unset. (trunk r11951)


Modified: main/branches/2.1.6/pym/portage/dbapi/bintree.py
===================================================================
--- main/branches/2.1.6/pym/portage/dbapi/bintree.py	2008-11-15 18:51:59 UTC (rev 11951)
+++ main/branches/2.1.6/pym/portage/dbapi/bintree.py	2008-11-15 18:53:05 UTC (rev 11952)
@@ -970,7 +970,7 @@
 	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 \




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-15 18:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-15 18:53 [gentoo-commits] portage r11952 - main/branches/2.1.6/pym/portage/dbapi Zac Medico (zmedico)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox