support/download/helpers: use appropriate TAR
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
Signed-off-by: Arnout Vandecappelle <arnout@mind.be>
(cherry picked from commit 86f6c7929e
)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
35fe226f79
commit
6ec2b2cad4
@ -59,7 +59,7 @@ mk_tar_gz() {
|
|||||||
LC_ALL=C sort <"${tmp}.list" >"${tmp}.sorted"
|
LC_ALL=C sort <"${tmp}.list" >"${tmp}.sorted"
|
||||||
|
|
||||||
# Create POSIX tarballs, since that's the format the most reproducible
|
# Create POSIX tarballs, since that's the format the most reproducible
|
||||||
tar cf - --transform="s#^\./#${base_dir}/#S" \
|
${TAR} cf - --transform="s#^\./#${base_dir}/#S" \
|
||||||
--numeric-owner --owner=0 --group=0 --mtime="${date}" \
|
--numeric-owner --owner=0 --group=0 --mtime="${date}" \
|
||||||
--format=posix --pax-option="${pax_options}" \
|
--format=posix --pax-option="${pax_options}" \
|
||||||
-T "${tmp}.sorted" >"${tmp}.tar"
|
-T "${tmp}.sorted" >"${tmp}.tar"
|
||||||
@ -78,7 +78,7 @@ post_process_unpack() {
|
|||||||
local one_file
|
local one_file
|
||||||
|
|
||||||
mkdir "${dest}"
|
mkdir "${dest}"
|
||||||
tar -C "${dest}" --strip-components=1 -xzf "${tarball}"
|
${TAR} -C "${dest}" --strip-components=1 -xzf "${tarball}"
|
||||||
one_file="$(find "${dest}" -type f -print0 |LC_ALL=C sort -z |sed 's/\x0.*//')"
|
one_file="$(find "${dest}" -type f -print0 |LC_ALL=C sort -z |sed 's/\x0.*//')"
|
||||||
touch -r "${one_file}" "${dest}.timestamp"
|
touch -r "${one_file}" "${dest}.timestamp"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user