RHEL7 doesn't include pigz or pbzip2 (#1144140)

Don't try to speed up gzip or bzip2 compression with them.

Related: rhbz#1144140
This commit is contained in:
Brian C. Lane 2014-09-22 15:32:00 -07:00
parent a8681aca4e
commit 0e6ea6be85

View File

@ -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)