[Uludag-commits] r16961 - trunk/pisi/pisi

uludag-commits at pardus.org.tr uludag-commits at pardus.org.tr
4 Şub 2008 Pzt 16:10:50 EET


Author: faik
Date: Mon Feb  4 16:10:50 2008
New Revision: 16961

Modified:
   trunk/pisi/pisi/archive.py
Log:
lzma 4.32 is not in 2007 or 2007-test. Revert this too,
for keeping 2007 compatilibity. For trunk/pisi please
use lzma 4.27.1 from stable.

For all 2008 spesific work please use branches/pisi-devel


Modified: trunk/pisi/pisi/archive.py
=================================================================
--- trunk/pisi/pisi/archive.py	(original)
+++ trunk/pisi/pisi/archive.py	Mon Feb  4 16:10:50 2008
@@ -114,7 +114,8 @@
         elif self.type == 'tarlzma':
             rmode = 'r:'
             self.file_path = self.file_path.rstrip(ctx.const.lzma_suffix)
-            ret, out, err = util.run_batch("lzma -k -f -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))
             if ret != 0:
                 raise LzmaRuntimeError(err)
         else:
@@ -189,9 +190,9 @@
         if self.tar.mode == 'wb' and self.type == 'tarlzma':
             batch = None
             if ctx.config.values.build.compressionlevel:
-                batch = "lzma -%s -z %s" % (ctx.config.values.build.compressionlevel, self.file_path)
+                batch = "lzmash -%s %s" % (ctx.config.values.build.compressionlevel, self.file_path)
             else:
-                batch = "lzma -z %s" % self.file_path
+                batch = "lzmash %s" % self.file_path
 
             ret, out, err = util.run_batch(batch)
             if ret != 0:


Uludag-commits mesaj listesiyle ilgili daha fazla bilgi