From 5ab540bc36ef272b3d9096f204ebad61e6a5c51a Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 18 Jun 2019 01:11:17 -0400 Subject: ob-buildopk: Re-add directories to archives --- diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh index 29e714d..859097a 100644 --- a/src/ob-buildopk.sh +++ b/src/ob-buildopk.sh @@ -48,10 +48,10 @@ build_opk() # about to tar. find "${binary}.control" "${binary}.data" | xargs chown -h 0:0 - (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 | \ - tar -czf '../data.tar.gz' -T -) + (cd -- "${binary}.control" && find '.' | LC_ALL=C sort | \ + tar -czf '../control.tar.gz' --no-recursion -T -) + (cd -- "${binary}.data" && find '.' | LC_ALL=C sort | \ + tar -czf '../data.tar.gz' --no-recursion -T -) ${TOUCH} -d "${date}" 'control.tar.gz' 'data.tar.gz' tar -czf "../../${binary}_${version}_${arch}_${plat}.opk" \ -- cgit v0.9.1