summaryrefslogtreecommitdiffstats
path: root/pym/portage/xpak.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-09-29 05:56:39 +0000
committerZac Medico <zmedico@gentoo.org>2009-09-29 05:56:39 +0000
commit199f9705b1a94a6e0ca419405482416e2e097597 (patch)
treea6deb5b0d869eb130d372eb438caa169d4890de8 /pym/portage/xpak.py
parent6fb39cc26b92e6331b610a4cb57e2bece6fc6862 (diff)
downloadportage-199f9705b1a94a6e0ca419405482416e2e097597.tar.gz
portage-199f9705b1a94a6e0ca419405482416e2e097597.tar.bz2
portage-199f9705b1a94a6e0ca419405482416e2e097597.zip
Make tbz2.get_data() return an empty dict on failure.
svn path=/main/trunk/; revision=14460
Diffstat (limited to 'pym/portage/xpak.py')
-rw-r--r--pym/portage/xpak.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/xpak.py b/pym/portage/xpak.py
index a9e15b563..262f14c85 100644
--- a/pym/portage/xpak.py
+++ b/pym/portage/xpak.py
@@ -436,7 +436,7 @@ class tbz2(object):
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 = {}