tar t ve tar x ağlamasın.

This commit is contained in:
Faik Uygur
2006-05-23 10:46:24 +00:00
parent e2f243809a
commit 5dbc0be8c8
+2 -2
View File
@@ -119,11 +119,11 @@ class ArchiveTar(ArchiveBase):
self.tar.add(file_name, arc_name) self.tar.add(file_name, arc_name)
def close(self): def close(self):
self.tar.close()
if self.tar.mode == 'wb' and self.type == 'tarlzma': if self.tar.mode == 'wb' and self.type == 'tarlzma':
util.run_batch("lzma e -a2 -d26 -fb64 %s %s" % (self.file_path, self.file_path + '.lzma')) util.run_batch("lzma e -a2 -d26 -fb64 %s %s" % (self.file_path, self.file_path + '.lzma'))
self.tar.close()
class ArchiveZip(ArchiveBase): class ArchiveZip(ArchiveBase):
"""ArchiveZip handles zip archives. """ArchiveZip handles zip archives.