* temizleyecek tek dosyamız olsun.
* run_batch ile ilgili durumu FIXME ile hatırlat.
This commit is contained in:
+4
-2
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user