From f043383f96580cc276eca3cda49fa2a3ebbd2409 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Fri, 1 Sep 2017 10:52:01 +0200 Subject: bin/build-packages: if package should not be uploaded, show logs of failed builds instead of uploading them --- bin/build-packages | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/bin/build-packages b/bin/build-packages index 8660346..654da8d 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -330,10 +330,15 @@ while [ "${count}" -ne 0 ]; do if ! ${success}; then for log in *'.build-log'; do if [ -f "${log}" ]; then - gzip "${log}" + if ${upload_to_build_master}; then + gzip "${log}" + else + grep -HF '' "${log}" + fi fi done - if tar -cf 'build-logs.gz.tar' \ + if ${upload_to_build_master} && \ + tar -cf 'build-logs.gz.tar' \ -- *'.build-log.gz'; then while ! ssh \ -i "${master_build_server_identity}" \ -- cgit v1.2.3-70-g09d2