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:
parent
a8681aca4e
commit
0e6ea6be85
@ -50,12 +50,6 @@ def compress(command, rootdir, outfile, compression="xz", compressargs=["-9"]):
|
|||||||
# make compression run with multiple threads if possible
|
# make compression run with multiple threads if possible
|
||||||
if compression in ("xz", "lzma"):
|
if compression in ("xz", "lzma"):
|
||||||
compressargs.insert(0, "-T%d" % multiprocessing.cpu_count())
|
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),
|
logger.debug("find %s -print0 |%s | %s %s > %s", rootdir, " ".join(command),
|
||||||
compression, " ".join(compressargs), outfile)
|
compression, " ".join(compressargs), outfile)
|
||||||
|
Loading…
Reference in New Issue
Block a user