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