summaryrefslogtreecommitdiffstats
path: root/patches/0001-ob-buildopk-touch-after-gzip-not-before.patch
blob: d5c44ffa55ae8e678ac9867e6ebab7fa9561d2c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
From e39a6e99302e8a780ca9867f92713e3fdfc518fc Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Wed, 9 Dec 2020 09:40:50 -0500
Subject: [PATCH] ob-buildopk: touch after gzip, not before

---
 src/ob-buildopk.sh | 1 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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'
-- 
2.11.0