summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-12-09 09:40:50 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-12-09 09:40:50 (EST)
commite39a6e99302e8a780ca9867f92713e3fdfc518fc (patch)
treebb1ea18e431c11853330ee4368c08fd6a6e5930d
parent8af88f471b157f6bf683abab44c95cda37726121 (diff)
ob-buildopk: touch after gzip, not before
-rw-r--r--NEWS6
-rw-r--r--src/ob-buildopk.sh2
2 files changed, 7 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index ef6a3d4..de2cb16 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,12 @@ opkbuild version 4.2.1+dev
Released: ????-??-??
+Utilities:
+
+ * ob-buildopk now sets the modification time of the "control.tar.gz"
+ and "data.tar.gz" files after compression rather than before,
+ because BusyBox's gzip doesn't preserve modification times.
+
opkbuild version 4.2.1
----------------------
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh
index 11c4434..dc88758 100644
--- a/src/ob-buildopk.sh
+++ b/src/ob-buildopk.sh
@@ -87,8 +87,8 @@ build_opk()
${TAR} -cf '../control.tar' --no-recursion -T -)
(cd -- "${binary}.data" && find '.' | LC_ALL=C sort ${sort_r} | \
${TAR} -cf '../data.tar' --no-recursion -T -)
- ${TOUCH} -t "${date}" 'control.tar' 'data.tar'
${GZIP} 'control.tar' 'data.tar'
+ ${TOUCH} -t "${date}" 'control.tar.gz' 'data.tar.gz'
${TAR} -cf "../../${binary_qual}_${version}_${arch}_${plat}.tar" \
'debian-binary' 'control.tar.gz' 'data.tar.gz'