From 4c275176e5c6336f5b00a97d6528b8731d63773f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Sat, 16 Jul 2005 20:55:59 +0000 Subject: [PATCH] =?UTF-8?q?link=20varsa=20sorun=20=C3=A7=C4=B1kartabilir.?= =?UTF-8?q?=20o=20y=C3=BCzden=20=C3=B6nce=20symlink'i=20siliyoruz.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/archive.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pisi/archive.py b/pisi/archive.py index f723ac5c..d31890a4 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -139,6 +139,8 @@ class ArchiveZip(ArchiveBase): if info.external_attr == self.symmagic: target = zipObj.read(info.filename) + if os.path.exists(ofile): + os.remove(ofile) os.symlink(target, ofile) else: perm = info.external_attr