index : builder | |
Archlinux32 build system | gitolite user |
summaryrefslogtreecommitdiff |
-rwxr-xr-x | bin/build-packages | 6 |
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 |