public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download mbox.gz: |
* [gentoo-commits] portage r14460 - main/trunk/pym/portage
@ 2009-09-29  5:56 99% Zac Medico (zmedico)
  0 siblings, 0 replies; 1+ results
From: Zac Medico (zmedico) @ 2009-09-29  5:56 UTC (permalink / raw
  To: gentoo-commits

Author: zmedico
Date: 2009-09-29 05:56:39 +0000 (Tue, 29 Sep 2009)
New Revision: 14460

Modified:
   main/trunk/pym/portage/xpak.py
Log:
Make tbz2.get_data() return an empty dict on failure.


Modified: main/trunk/pym/portage/xpak.py
===================================================================
--- main/trunk/pym/portage/xpak.py	2009-09-29 05:23:23 UTC (rev 14459)
+++ main/trunk/pym/portage/xpak.py	2009-09-29 05:56:39 UTC (rev 14460)
@@ -436,7 +436,7 @@
 	def get_data(self):
 		"""Returns all the files from the dataSegment as a map object."""
 		if not self.scan():
-			return 0
+			return {}
 		a = open(_unicode_encode(self.file,
 			encoding=_encodings['fs'], errors='strict'), 'rb')
 		mydata = {}




^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2009-09-29  5:56 99% [gentoo-commits] portage r14460 - main/trunk/pym/portage 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