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>2020-02-20 08:48:56 +0100
committerErich Eckner <git@eckner.net>2020-02-20 08:48:56 +0100
commit7d1f4ce19d470f0e659f503165beaa0cd133ed9f (patch)
tree607128910bfd6d236ed68e4f3ff5bf7dd495f5dd /bin
parenta360f504d93623280f9a2e01a04b45833ec20fec (diff)
bin/build-packages: rename namcap log
Diffstat (limited to 'bin')
-rwxr-xr-xbin/build-packages5
1 files changed, 5 insertions, 0 deletions
diff --git a/bin/build-packages b/bin/build-packages
index ea9098e..df8faf1 100755
--- a/bin/build-packages
+++ b/bin/build-packages
@@ -675,6 +675,11 @@ while [ "${count}" -ne 0 ] && \
if [ "${build_command}" = 'makepkg' ]; then
find . -maxdepth 1 -type f -name '*.pkg.tar.zst' \
-exec sh -c 'namcap "$1" > "$1-namcap.log"' '_' '{}' \;
+ else
+ find . -maxdepth 1 -type f -name '*.pkg.tar-namcap.log' \
+ | while read -r file; do
+ mv "${file}" "${file%-namcap.log}.zst-namcap.log"
+ done
fi
tar_content_dir=$(mktemp -d "${tmp_dir}/tar-content.XXXXXX")
# remove unexpected packages