[rhel7-branch 6/8] RHEL7 doesn't include pigz or pbzip2 (#1144140)
Brian C. Lane
bcl at redhat.com
Tue Sep 23 00:28:41 UTC 2014
Don't try to speed up gzip or bzip2 compression with them.
Related: rhbz#1144140
---
src/pylorax/imgutils.py | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/pylorax/imgutils.py b/src/pylorax/imgutils.py
index 91fd73c..f122b02 100644
--- a/src/pylorax/imgutils.py
+++ b/src/pylorax/imgutils.py
@@ -50,12 +50,6 @@ def compress(command, rootdir, outfile, compression="xz", compressargs=["-9"]):
# make compression run with multiple threads if possible
if compression in ("xz", "lzma"):
compressargs.insert(0, "-T%d" % multiprocessing.cpu_count())
- elif compression == "gzip":
- compression = "pigz"
- compressargs.insert(0, "-p%d" % multiprocessing.cpu_count())
- elif compression == "bzip2":
- compression = "pbzip2"
- compressargs.insert(0, "-p%d" % multiprocessing.cpu_count())
logger.debug("find %s -print0 |%s | %s %s > %s", rootdir, " ".join(command),
compression, " ".join(compressargs), outfile)
--
1.9.3
More information about the anaconda-patches
mailing list