From 1e73a512b4e04e3d525afe1a1d6d6f7abdbead87 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Mon, 17 Apr 2023 20:17:22 +0200 Subject: bin/return-assignment: save the logs of successful builds --- bin/return-assignment | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'bin') 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" -- cgit v1.2.3-70-g09d2