* util.py bug fixed. err is working as expected.
This commit is contained in:
+2
-4
@@ -95,8 +95,7 @@ class ArchiveTar(ArchiveBase):
|
|||||||
ret, out, err = util.run_batch("lzma d %s %s" % (self.file_path + ctx.const.lzma_suffix,
|
ret, out, err = util.run_batch("lzma d %s %s" % (self.file_path + ctx.const.lzma_suffix,
|
||||||
self.file_path))
|
self.file_path))
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
#FIXME: see bug #2836
|
raise LZMAError(err)
|
||||||
raise LZMAError(out)
|
|
||||||
else:
|
else:
|
||||||
raise ArchiveError(_("Archive type not recognized"))
|
raise ArchiveError(_("Archive type not recognized"))
|
||||||
|
|
||||||
@@ -157,8 +156,7 @@ class ArchiveTar(ArchiveBase):
|
|||||||
|
|
||||||
ret, out, err = util.run_batch(batch)
|
ret, out, err = util.run_batch(batch)
|
||||||
if ret != 0:
|
if ret != 0:
|
||||||
#FIXME: see bug #2836
|
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