From 0ba187293177b1b6b5f1f388985335227f9da368 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Fri, 24 Jun 2005 16:29:29 +0000 Subject: [PATCH] * default directory temizlemeyi kaldir, soyle use case'ler var: bir seyler cikar bir seyler daha cikar root directory'e cikar :) <-- root diri silmek cok parlak olmadi allahtan user mode'da calisiyoruz :) * fix: ofile degil fileName'in sonuna bakmak gerekiyor dir mi degil mi anlamak icin --- pisi/archive.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/archive.py b/pisi/archive.py index cf360a35..b598c22d 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -21,7 +21,7 @@ class ArchiveBase(object): self.filePath = filepath self.type = atype - def unpack(self, targetDir, cleanDir=True): + def unpack(self, targetDir, cleanDir=False): self.targetDir = targetDir # first we check if we need to clean-up our working env. if os.path.exists(self.targetDir): @@ -128,7 +128,7 @@ class ArchiveZip(ArchiveBase): print 'ofile ', ofile # a directory is present. lets continue - if ofile[len(ofile)-1]=='/': + if fileName.endswith('/'): continue # check that output dir is present