livemedia-creator: Add --no-recursion to mktar (#1144140)

tar recurses into directories by default, but find is feeding it all the
files and directories so the tar it produces is considerably larger than
it needs to be due to duplicate files. Add --no-recursion flag so that
tar will only add the specific files and directories piped to it by find.

Related: rhbz#1144140
This commit is contained in:
Brian C. Lane 2014-08-27 16:49:47 -07:00
parent 526988651d
commit a8681aca4e
1 changed files with 2 additions and 1 deletions

View File

@ -78,7 +78,8 @@ def mkcpio(rootdir, outfile, compression="xz", compressargs=["-9"]):
rootdir, outfile, compression, compressargs)
def mktar(rootdir, outfile, compression="xz", compressargs=["-9"]):
return compress(["tar", "--selinux", "--acls", "--xattrs", "-cf-", "--null", "-T-"],
compressargs = compressargs or ["-9"]
return compress(["tar", "--no-recursion", "--selinux", "--acls", "--xattrs", "-cf-", "--null", "-T-"],
rootdir, outfile, compression, compressargs)
def mksquashfs(rootdir, outfile, compression="default", compressargs=[]):