Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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