diff options
-rw-r--r-- | src/ob-buildopk.sh | 6 |
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 -) |