diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-09-29 05:56:39 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-09-29 05:56:39 +0000 |
commit | 199f9705b1a94a6e0ca419405482416e2e097597 (patch) | |
tree | a6deb5b0d869eb130d372eb438caa169d4890de8 | |
parent | 6fb39cc26b92e6331b610a4cb57e2bece6fc6862 (diff) | |
download | portage-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
-rw-r--r-- | pym/portage/xpak.py | 2 |
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 = {} |