diff options
author | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-16 10:03:21 (EDT) |
---|---|---|
committer | Patrick McDermott <patrick.mcdermott@libiquity.com> | 2019-06-16 10:03:21 (EDT) |
commit | 6c5cefe56abe06b53c6c89df5de7117d53b2952c (patch) | |
tree | 0f7885da109cb1c4d7c8d91d23bbfbebe04f7362 /src | |
parent | 48cce14340195450b945d737abffc18fda5c20a3 (diff) |
ob-buildopk: Don't reverse sort archive members with -T
Apparently BusyBox tar doesn't reverse members listed with -T, contrary
to previous testing?
Diffstat (limited to 'src')
-rw-r--r-- | src/ob-buildopk.sh | 4 |
1 files changed, 2 insertions, 2 deletions
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' |