From 3896f9ef6be939b1fb6a74fccc0e287fb0ee14b2 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Tue, 07 Jul 2020 22:10:31 -0400 Subject: ob-buildopk: chown data of src packages --- (limited to 'src') 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 -) -- cgit v0.9.1