Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-01-15 09:34:58 +0100
committerErich Eckner <git@eckner.net>2019-01-15 09:34:58 +0100
commit387117f5565decbda3ae802ec86431af398fd4fe (patch)
tree32845d51b6b1be7f27c9e23411c94a1b3aedd65a /bin
parent954a72aa672feb577f62a7c1470f92bbc203bf92 (diff)
bin/build-packages: do not run chmod on symlinks
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/build-packages b/bin/build-packages
index aa86a5d..fc61e78 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -310,7 +310,7 @@ while [ "${count}" -ne 0 ] && \
-name 'tmp.build-packages.??????' \
-printf '%p\n' | \
while read -r old_tmp_dir; do
- find "${old_tmp_dir}" -xdev -exec chmod 777 {} \;
+ find "${old_tmp_dir}" -xdev -not -type l -exec chmod 777 {} \;
rm -rf --one-file-system "${old_tmp_dir}"
done
tmp_dir=$(mktemp -d "${work_dir}/tmp.build-packages.XXXXXX")
@@ -635,7 +635,7 @@ while [ "${count}" -ne 0 ] && \
' | \
sort -u >> \
"${pkgfile}.so.provides"
- find "${package_content_dir:?}/${pkgfile##*/}" -xdev -exec chmod 777 '{}' \;
+ find "${package_content_dir:?}/${pkgfile##*/}" -xdev -not -type l -exec chmod 777 '{}' \;
rm -rf --one-file-system "${package_content_dir:?}/${pkgfile##*/}"
fi
tar -tJf "${pkgfile}" 2>/dev/null | \