From cf0a5f2de84fa5607cfd99174f3463fbf7c15854 Mon Sep 17 00:00:00 2001 From: "A. Murat Eren" Date: Mon, 13 Jun 2005 20:40:00 +0000 Subject: [PATCH] ar$iv.peye = fix_tirnak_muhabbeti(ar$iv.peye) :( umarim bunun icin beni sopalamazsiniz. --- src/pisi/archive.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/pisi/archive.py b/src/pisi/archive.py index 4059d051..a531dae6 100644 --- a/src/pisi/archive.py +++ b/src/pisi/archive.py @@ -19,8 +19,8 @@ class ArchiveTarFile(ArchiveBase): super(ArchiveTarFile, self).__init__(fileName, type) def unpack(self): - if self.type == "targz": - tar = tarfile.open(config.archives_dir() + "/" + self.fileName, 'r:gz') + if self.type == 'targz': + tar = tarfile.open(config.archives_dir() + '/' + self.fileName, 'r:gz') for tarinfo in tar: tar.extract(tarinfo) tar.close() @@ -31,14 +31,14 @@ class ArchiveZip(ArchiveBase): super(ArchiveZip, self).__init__(fileName, type) def unpack(self): - zip = zipfile.Zipfile(config.archives_dir() + "/" + self.fileName, 'r') + zip = zipfile.Zipfile(config.archives_dir() + '/' + self.fileName, 'r') fileNames = zip.namelist() for file in fileNames: file = config.archives_dir() + '/' + file if not os.path.exists(os.path.dirname(file)): os.mkdir(os.path.dirname(file)) continue - buff = open (file, "wb") + buff = open (file, 'wb') fileContent = zip.read(file) buff.write(fileContent) buff.close()