summaryrefslogtreecommitdiffstats
path: root/support/download
diff options
context:
space:
mode:
authorPetr Kulhavy <brain@jikos.cz>2017-09-12 00:13:40 +0200
committerPeter Korsgaard <peter@korsgaard.com>2017-09-12 23:36:13 +0200
commit04a22cf1b521acb5634ed083e0381d42979d1698 (patch)
treec82317334d0ae9c77e83a3897b2bcd1e68c07ada /support/download
parent81bf606d160ecd2479d338e18111e56f4020728c (diff)
downloadbuildroot-04a22cf1b521acb5634ed083e0381d42979d1698.tar.gz
buildroot-04a22cf1b521acb5634ed083e0381d42979d1698.zip
download/git: force gzip compression level 6
Force gzip compression level 6 when calculating hash of a downloaded GIT repo. To make sure the tar->gzip->checksum chain always provides consistent result.` The script was relying on the default compression level, which must not be necessarily consistent among different gzip versions. The level 6 is gzip's current default compression level. Signed-off-by: Petr Kulhavy <brain@jikos.cz> Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'support/download')
-rwxr-xr-xsupport/download/git2
1 files changed, 1 insertions, 1 deletions
diff --git a/support/download/git b/support/download/git
index fc2957d2ca..f590ff6494 100755
--- a/support/download/git
+++ b/support/download/git
@@ -101,4 +101,4 @@ LC_ALL=C sort <"${basename}.list" >"${basename}.list.sorted"
# sources.buildroot.org and used in the *.hash files
tar cf - --numeric-owner --owner=0 --group=0 --mtime="${date}" --format=gnu \
-T "${basename}.list.sorted" >"${output}.tar"
-gzip -n <"${output}.tar" >"${output}"
+gzip -6 -n <"${output}.tar" >"${output}"
OpenPOWER on IntegriCloud