From 107a1a3a68658f17c65620ef6fdee39e7a8feac0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Thu, 29 Sep 2005 08:24:33 +0000 Subject: [PATCH] =?UTF-8?q?symlink=20p=C3=B6rtlemesin?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/archive.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pisi/archive.py b/pisi/archive.py index 5e428a38..e48c8d45 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -160,6 +160,9 @@ class ArchiveZip(ArchiveBase): if info.external_attr == self.symmagic: target = zip_obj.read(info.filename) + # remove target file we might be overwriting + if os.path.exists(target): + os.remove(target) os.symlink(target, ofile) else: perm = info.external_attr