Kaydet (Commit) 1086534c authored tarafından Faik Uygur's avatar Faik Uygur

* temizleyecek tek dosyamız olsun.

* run_batch ile ilgili durumu FIXME ile hatırlat.
üst a73f1b69
......@@ -94,6 +94,7 @@ class ArchiveTar(ArchiveBase):
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))
if ret != 0:
#FIXME: see bug #2836
raise LZMAError(out)
else:
raise ArchiveError(_("Archive type not recognized"))
......@@ -149,12 +150,13 @@ class ArchiveTar(ArchiveBase):
if self.tar.mode == 'wb' and self.type == 'tarlzma':
batch = None
if ctx.config.values.build.compressionlevel:
batch = "lzmash -k -%s %s" % (ctx.config.values.build.compressionlevel, self.file_path)
batch = "lzmash -%s %s" % (ctx.config.values.build.compressionlevel, self.file_path)
else:
batch = "lzmash -k %s" % self.file_path
batch = "lzmash %s" % self.file_path
ret, out, err = util.run_batch(batch)
if ret != 0:
#FIXME: see bug #2836
raise LZMAError(out)
class ArchiveZip(ArchiveBase):
......
......@@ -823,7 +823,6 @@ class Builder:
tar.close()
pkg.add_to_package("install.tar.lzma")
pkg.close()
os.unlink("install.tar")
os.unlink("install.tar.lzma")
os.chdir(c)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment