debian/bin/genorig.py: Allow xz to use all cpu cores

This commit is contained in:
Bastian Blank 2018-05-25 10:08:33 +02:00
parent 90aece9ead
commit 91d3209f78
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ class Main(object):
self.log("Generate tarball %s\n" % out)
cmdline = '''(cd '%s' && find '%s' -print0) |
LC_ALL=C sort -z |
tar -C '%s' --no-recursion --null -T - --mtime '%s' --owner root --group root -caf '%s'
XZ_OPT=-T0 tar -C '%s' --no-recursion --null -T - --mtime '%s' --owner root --group root -caf '%s'
''' % (self.dir, self.orig, self.dir, orig_date, out)
try:
if os.spawnv(os.P_WAIT, '/bin/sh', ['sh', '-c', cmdline]):