summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2020-07-07 22:10:31 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2020-07-07 22:10:31 (EDT)
commit3896f9ef6be939b1fb6a74fccc0e287fb0ee14b2 (patch)
treef1ba8336a46d29fad844f57c1e49bfce3febb360
parent2943e63b7a3222f1af2a777ed259a6fe2a321cde (diff)
ob-buildopk: chown data of src packages
-rw-r--r--src/ob-buildopk.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/ob-buildopk.sh b/src/ob-buildopk.sh
index 5ffe56b..11c4434 100644
--- a/src/ob-buildopk.sh
+++ b/src/ob-buildopk.sh
@@ -77,7 +77,11 @@ build_opk()
# This utility runs with (fake) privileges, so we can chown what we're
# about to tar.
- find "${binary}.control" | xargs chown -h 0:0
+ if [ "x${arch}" = 'xsrc' ]; then
+ find "${binary}.control" "${binary}.data" | xargs chown -h 0:0
+ else
+ find "${binary}.control" | xargs chown -h 0:0
+ fi
(cd -- "${binary}.control" && find '.' | LC_ALL=C sort ${sort_r} | \
${TAR} -cf '../control.tar' --no-recursion -T -)