Use lbzip2 for tar.bz2
authorMatt Turner <mattst88@gmail.com>
Fri, 28 Sep 2012 01:41:48 +0000 (18:41 -0700)
committerMatt Turner <mattst88@gmail.com>
Sun, 14 Oct 2012 05:50:19 +0000 (22:50 -0700)
modules/catalyst_support.py
modules/generic_stage_target.py
modules/snapshot_target.py

index 5847d12745cd6e9c953dabcd724cad515545c522..6dbcfb78ec0b321888cf6537bb7bf5898537691b 100644 (file)
@@ -108,7 +108,7 @@ contents_map={
        #"find"         :[calc_contents,"find %(path)s"],
        "tar-tv":[calc_contents,"tar tvf %(file)s"],
        "tar-tvz":[calc_contents,"tar tvzf %(file)s"],
-       "tar-tvj":[calc_contents,"tar tvjf %(file)s"],
+       "tar-tvj":[calc_contents,"tar -I lbzip2 -tvf %(file)s"],
        "isoinfo-l":[calc_contents,"isoinfo -l -i %(file)s"],
        # isoinfo-f should be a last resort only
        "isoinfo-f":[calc_contents,"isoinfo -f -i %(file)s"],
index 2f93a738298e0d3d77b374bf11ef1c4abaab1f8c..eb5f4905e0292ef87a7cebc2e6568fa071c96790 100644 (file)
@@ -1179,7 +1179,7 @@ class generic_stage_target(generic_target):
 
                        print "Creating stage tarball..."
 
-                       cmd("tar cjpf "+self.settings["target_path"]+" -C "+\
+                       cmd("tar -I lbzip2 -cpf "+self.settings["target_path"]+" -C "+\
                                self.settings["stage_path"]+" .",\
                                "Couldn't create stage tarball",env=self.env)
 
index bd96c985bf8da22e606f2fac8ff6f5caa1168000..81ab083f3da1763c18e823ba3c1feab6ac5da536 100644 (file)
@@ -50,7 +50,7 @@ class snapshot_target(generic_stage_target):
                        self.settings["portdir"]+"/ "+mytmp+"/portage/","Snapshot failure",env=self.env)
 
                print "Compressing Portage snapshot tarball..."
-               cmd("tar cjf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\
+               cmd("tar -I lbzip2 -cf "+self.settings["snapshot_path"]+" -C "+mytmp+" portage",\
                        "Snapshot creation failure",env=self.env)
 
                self.gen_contents_file(self.settings["snapshot_path"])