From dbb9a91cd95a6a6ca0c96581e3abae264732f379 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sat, 27 Feb 2010 19:33:40 +0000 Subject: [PATCH] Remove redundant variable --- pisi/archive.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pisi/archive.py b/pisi/archive.py index fdcad67e..d4869b45 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -439,14 +439,13 @@ class ArchiveZip(ArchiveBase): ofile = os.path.join(target_dir, outpath) if is_dir: # this is a directory - d = os.path.join(target_dir, outpath) - if not os.path.isdir(d): - os.makedirs(d) + if not os.path.isdir(ofile): + os.makedirs(ofile) perm = info.external_attr perm &= 0xFFFF0000 perm >>= 16 perm |= 0x00000100 - os.chmod(d, perm) + os.chmod(ofile, perm) continue # check that output dir is present