]> git.corax.cc Git - foundry/commitdiff
signbot: Be more verbose when refusing to sign builds
authorMatthias Kruk <m@m10k.eu>
Wed, 1 Dec 2021 02:07:39 +0000 (11:07 +0900)
committerMatthias Kruk <m@m10k.eu>
Wed, 1 Dec 2021 02:11:53 +0000 (11:11 +0900)
Signbot refuses to sign builds if they were unsuccessful, however
it does not print any information about the build it refused to sign.
This commit modifies signbot to print additional information about
the refused build.

signbot.sh

index f31e528f773f0d961d86d024ba459a69f47153a1..7c6c151a8b7fd3a6b5087ff4cd10e8af981ea0e3 100755 (executable)
@@ -53,7 +53,7 @@ handle_build_message() {
 
        if ! is_digits "$result" ||
           (( result != 0 )); then
-               log_warn "Refusing to sign failed build"
+               log_warn "Not signing $repository#$branch [$ref] (build result was $result)"
                return 1
        fi