From b4864525c05260a03c762703d58a340f572e1f2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Metin?= Date: Mon, 29 May 2006 22:06:43 +0000 Subject: [PATCH] fix #2847 --- pisi/archive.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pisi/archive.py b/pisi/archive.py index 1045511a..2b81c00b 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -112,7 +112,8 @@ class ArchiveTar(ArchiveBase): # # Also, tar.extract() doesn't write on symlinks... Not any # more :). - if self.file_path == install_tar_path and os.path.exists(tarinfo.name): + if self.file_path == install_tar_path and os.path.exists(tarinfo.name) \ + and not os.path.isdir(tarinfo.name): os.unlink(tarinfo.name) self.tar.extract(tarinfo)