From 97ea124b6588b9b91368cacbd879a339722076c8 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Wed, 21 Jun 2017 10:06:15 +0200 Subject: bin/return-assignment: receive and save build log for failed builds, be more pedantic about tared files for succeeded builds --- bin/return-assignment | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/return-assignment b/bin/return-assignment index 9d89843..5374f5e 100755 --- a/bin/return-assignment +++ b/bin/return-assignment @@ -42,6 +42,13 @@ if [ "$5" = 'ERROR' ]; then exit 0 fi + # save sent build logs + tar -x \ + -C "${build_log_directory}" \ + --wildcards \ + --no-wildcards-match-slash \ + '*.build-log.gz' + cat \ "${work_dir}/package-states/$1.$2.$3.$4.locked" >> \ "${work_dir}/package-states/$1.$2.$3.$4.broken" @@ -114,7 +121,11 @@ cd "${tmp_dir}" trap clean_up_tmp_dir EXIT # extract package(s) -tar -x +tar -x \ + --wildcards \ + --no-wildcards-match-slash \ + '*.pkg.tar.xz' \ + '*.pkg.tar.xz.sig' # check if all packages are signed and all signatures belong to a package signature_errors="$( -- cgit v1.2.3-70-g09d2