Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-04-17 20:17:22 +0200
committerErich Eckner <git@eckner.net>2023-04-17 20:17:22 +0200
commit1e73a512b4e04e3d525afe1a1d6d6f7abdbead87 (patch)
tree2269f8c216e8e53a89d77d6551ebcb4878e3499c
parentbcb5c2b1c7eda316b9c39c75cd530d94437cecf5 (diff)
bin/return-assignment: save the logs of successful builds
-rwxr-xr-xbin/return-assignment25
1 files changed, 25 insertions, 0 deletions
diff --git a/bin/return-assignment b/bin/return-assignment
index cefada5..892aac8 100755
--- a/bin/return-assignment
+++ b/bin/return-assignment
@@ -960,6 +960,31 @@ if [ -n "${errors}" ]; then
exit 1
fi
+some_architecture=$(
+ ls \
+ | sed '
+ s/^.*-\([^-]\+\)\.pkg\.\('"${package_compression_suffix_regex}"'\)$/\1/
+ t
+ d
+ ' \
+ | sort -u \
+ | sed '
+ s/^any$/0 \0/
+ t
+ s/^/1 \0/
+ ' \
+ | sort -k1n,1 \
+ | tail -n1 \
+ | cut -d' ' -f2
+)
+
+for build_log in *.build-log.gz; do
+ [ -f "${build_log}" ] || continue;
+ mv -n \
+ "${build_log}" \
+ "${build_log_directory}/success/$1.$2.$3.$4.${some_architecture}.${build_log##*/}"
+done
+
join -1 2 -2 2 -o 1.1,1.2,2.1 "${tmp_dir}/package-ids" "${tmp_dir}/signing-keys" \
| sponge "${tmp_dir}/package-ids"