From 6b1e302842bdec055078f51bd82301fa75482303 Mon Sep 17 00:00:00 2001 From: "A. Murat Eren" Date: Sat, 6 Aug 2005 14:11:10 +0000 Subject: [PATCH] =?UTF-8?q?=20Bo=C5=9F=20dizinleri=20zip'e=20ekliyor=20fak?= =?UTF-8?q?at=20a=C3=A7arken=20olu=C5=9Fturmuyorduk..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pisi/archive.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pisi/archive.py b/pisi/archive.py index 28a18857..b6c0905a 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -126,7 +126,7 @@ class ArchiveZip(ArchiveBase): if pred(info.filename): # check if condition holds # below code removes that, so we find it here - isdir = info.filename.endswith('/') + isDir = info.filename.endswith('/') # calculate output file name if archiveRoot == '': @@ -141,8 +141,9 @@ class ArchiveZip(ArchiveBase): ofile = os.path.join(targetDir, outpath) - if isdir: # a directory is present. - continue # FIXME: do nothing! + if isDir: # a directory is present. + os.mkdir(os.path.join(targetDir, info.filename)) + continue # check that output dir is present util.check_dir(os.path.dirname(ofile))