From 1fdd63086560c9a63398681b977bb36eb1b4f319 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=B0smail=20D=C3=B6nmez?= Date: Sat, 29 Dec 2007 21:59:26 +0000 Subject: [PATCH] adopt to new lzma --- pisi/archive.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pisi/archive.py b/pisi/archive.py index c2a24ef2..a0b5db48 100644 --- a/pisi/archive.py +++ b/pisi/archive.py @@ -114,8 +114,7 @@ class ArchiveTar(ArchiveBase): elif self.type == 'tarlzma': rmode = 'r:' self.file_path = self.file_path.rstrip(ctx.const.lzma_suffix) - ret, out, err = util.run_batch("lzma d %s %s" % (self.file_path + ctx.const.lzma_suffix, - self.file_path)) + ret, out, err = util.run_batch("lzma -k -f -d %s%s" % (self.file_path,ctx.const.lzma_suffix)) if ret != 0: raise LzmaRuntimeError(err) else: @@ -190,9 +189,9 @@ class ArchiveTar(ArchiveBase): if self.tar.mode == 'wb' and self.type == 'tarlzma': batch = None if ctx.config.values.build.compressionlevel: - batch = "lzmash -%s %s" % (ctx.config.values.build.compressionlevel, self.file_path) + batch = "lzma -%s -z %s" % (ctx.config.values.build.compressionlevel, self.file_path) else: - batch = "lzmash %s" % self.file_path + batch = "lzma -z %s" % self.file_path ret, out, err = util.run_batch(batch) if ret != 0: