From 5f1ae0a9f0e927a2f749e379f4efa5b276643993 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 24 Apr 2007 19:05:14 +0000 Subject: [PATCH] Workaround: Python 2.5.1's tarfile crashes if 'name' is None; see Python bug #1706850. git-svn-id: file:///home/talex/Backups/sf.net/Subversion/zero-install/trunk/0launch@1692 9f8c893c-44ee-0310-b757-c8ca8341c71e --- zeroinstall/zerostore/unpack.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/zeroinstall/zerostore/unpack.py b/zeroinstall/zerostore/unpack.py index ed0df37..dbe43a5 100644 --- a/zeroinstall/zerostore/unpack.py +++ b/zeroinstall/zerostore/unpack.py @@ -284,7 +284,8 @@ def extract_tar(stream, destdir, extract, decompress, start_offset = 0): import tarfile stream.seek(start_offset) - tar = tarfile.open(mode = rmode, fileobj = stream) + # Python 2.5.1 crashes if name is None; see Python bug #1706850 + tar = tarfile.open(name = '', mode = rmode, fileobj = stream) current_umask = os.umask(0) os.umask(current_umask) -- 2.11.4.GIT