summaryrefslogtreecommitdiff
path: root/bin/build-packages
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/build-packages
parenta360f504d93623280f9a2e01a04b45833ec20fec (diff)
downloadbuilder-7d1f4ce19d470f0e659f503165beaa0cd133ed9f.tar.xz
bin/build-packages: rename namcap log
Diffstat (limited to 'bin/build-packages')
-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