From 1fb9a9f88cea42e807d285096e75d1b499c2632f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Wed, 15 Jun 2005 17:28:22 +0000 Subject: [PATCH] =?UTF-8?q?Python=20hatas=C4=B1=20y=C3=BCz=C3=BCnden=20yap?= =?UTF-8?q?mak=20zorunda=20oldu=C4=9Fumuz=20kar=C5=9F=C4=B1la=C5=9Ft=C4=B1?= =?UTF-8?q?rma=20"salakl=C4=B1=C4=9F=C4=B1n=C4=B1"=20kod=20i=C3=A7erisinde?= =?UTF-8?q?=20belirttik=20ki=20bizi=20"salak"=20sanmas=C4=B1nlar,=20di=20m?= =?UTF-8?q?i=3F=20Di...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pisi/archive.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pisi/archive.py b/src/pisi/archive.py index 6cd715ad..9d4f6310 100644 --- a/src/pisi/archive.py +++ b/src/pisi/archive.py @@ -67,6 +67,11 @@ class ArchiveZip(ArchiveBase): os.mkdir(ofile) continue info = zip.getinfo(file) + # O.K. we know following line is dull. What we wanted to + # do was to compare the equality to 0xa0000000. But there + # is a known problem in Python regarding the hex/oct + # constants. Please see Guido's explanation at + # http://mail.python.org/pipermail/python-dev/2003-February/033029.html if hex(info.external_attr)[2] == 'A': target = zip.read(file) os.symlink(target, ofile)