support/download/helpers: use tar xzf in post_process_unpack()
For now, the download post-process logic uses mk_tar_gz, which repacks a tarball compressed with gzip. So we can only accept as input a tarball also compressed with gzip. To enforce that, this commit changes post_process_unpack() to use tar xzf. This makes sure that if a tarball compressed with something else than gzip gets used, it will bail out and we will notice. Support for other compression schemes can be added later on. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
parent
d9437db272
commit
8ccff780f4
@ -78,7 +78,7 @@ post_process_unpack() {
|
||||
local one_file
|
||||
|
||||
mkdir "${dest}"
|
||||
tar -C "${dest}" --strip-components=1 -xf "${tarball}"
|
||||
tar -C "${dest}" --strip-components=1 -xzf "${tarball}"
|
||||
one_file="$(find "${dest}" -type f -print0 |LC_ALL=C sort -z |head -z -n1 |tr -d "\0")"
|
||||
touch -r "${one_file}" "${dest}.timestamp"
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user