Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2018-03-12 21:05:42 +0100
committerErich Eckner <git@eckner.net>2018-03-12 21:06:11 +0100
commit578d17ab21ced3db7f145ea208c52cf97a6a4a91 (patch)
treec2cbbbfd1b012dcdcca28b3186404bf1737d5a2a
parent3137ac0fe134369bc1f4805b00df09af01965022 (diff)
bin/build-packages: set permissions to 777 before deleting old build-tmp-dir
-rwxr-xr-xbin/build-packages6
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/build-packages b/bin/build-packages
index 0f0c841..ea346bc 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -264,7 +264,11 @@ while [ "${count}" -ne 0 ]; do
-mindepth 1 \
-maxdepth 1 \
-name 'tmp.build-packages.??????' \
- -exec rm -rf --one-file-system {} \;
+ -printf '%p\n' | \
+ while read -r old_tmp_dir; do
+ find "${old_tmp_dir}" -xdev -exec chmod 777 {} \;
+ rm -rf --one-file-system "${old_tmp_dir}"
+ done
tmp_dir=$(mktemp -d "${work_dir}/tmp.build-packages.XXXXXX")
trap bail_out EXIT