From 6c5cefe56abe06b53c6c89df5de7117d53b2952c Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 16 Jun 2019 10:03:21 -0400 Subject: ob-buildopk: Don't reverse sort archive members with -T Apparently BusyBox tar doesn't reverse members listed with -T, contrary to previous testing? --- (limited to 'src') diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh index dc5dae4..a655ff9 100644 --- a/src/ob-buildopk.sh +++ b/src/ob-buildopk.sh @@ -35,9 +35,9 @@ build_opk() # This utility runs with (fake) privileges, so we can chown what we're # about to tar. find "${binary}.control" "${binary}.data" | xargs chown 0:0 - (cd -- "${binary}.control" && find '.' \! -type d | LC_ALL=C sort -r | \ + (cd -- "${binary}.control" && find '.' \! -type d | LC_ALL=C sort | \ tar -czf '../control.tar.gz' -T -) - (cd -- "${binary}.data" && find '.' \! -type d | LC_ALL=C sort -r | \ + (cd -- "${binary}.data" && find '.' \! -type d | LC_ALL=C sort | \ tar -czf '../data.tar.gz' -T -) touch -d "${date}" 'control.tar.gz' 'data.tar.gz' -- cgit v0.9.1