#2836 çözülene kadar, böyle kalsın, hataları görelim.
This commit is contained in:
+2
-2
@@ -94,7 +94,7 @@ class ArchiveTar(ArchiveBase):
|
|||||||
self.file_path = self.file_path.rstrip('.lzma')
|
self.file_path = self.file_path.rstrip('.lzma')
|
||||||
ret, out, err = util.run_batch("lzma d %s %s" % (self.file_path + '.lzma', self.file_path))
|
ret, out, err = util.run_batch("lzma d %s %s" % (self.file_path + '.lzma', self.file_path))
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
raise LZMAError(err)
|
raise LZMAError(out)
|
||||||
else:
|
else:
|
||||||
raise ArchiveError(_("Archive type not recognized"))
|
raise ArchiveError(_("Archive type not recognized"))
|
||||||
|
|
||||||
@@ -155,7 +155,7 @@ class ArchiveTar(ArchiveBase):
|
|||||||
|
|
||||||
ret, out, err = util.run_batch(batch)
|
ret, out, err = util.run_batch(batch)
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
raise LZMAError(err)
|
raise LZMAError(out)
|
||||||
|
|
||||||
class ArchiveZip(ArchiveBase):
|
class ArchiveZip(ArchiveBase):
|
||||||
"""ArchiveZip handles zip archives.
|
"""ArchiveZip handles zip archives.
|
||||||
|
|||||||
Reference in New Issue
Block a user