From 8ca4359f82a40d7918d6cb6cce9c8ea76d52e6c7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bahad=C4=B1r=20Kandemir?= Date: Fri, 6 Feb 2009 09:31:38 +0000 Subject: [PATCH] Extract file to targetdir --- python-2.6.patch | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/python-2.6.patch b/python-2.6.patch index c673fdfe..61ffc13d 100644 --- a/python-2.6.patch +++ b/python-2.6.patch @@ -31,9 +31,18 @@ Index: pisi/archive.py + self.decompressToFileNew(name, outname) + + def decompressToFileNew(self, name, outname): -+ self.extract(name, os.path.dirname(outname)) ++ self.extract(name, outname) + + def decompressToFileOld(self, name, outname): import zlib import binascii +@@ -414,7 +426,7 @@ + perm &= 0x08FF0000 + perm >>= 16 + perm |= 0x00000100 +- zip_obj.decompressToFile(info.filename, ofile) ++ zip_obj.decompressToFile(info.filename, target_dir) + os.chmod(ofile, perm) + + def unpack_files(self, paths, target_dir):