tar t ve tar x ağlamasın.
This commit is contained in:
+2
-2
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user