From 13e5cc622553619836372e0875b50bda1d36575f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20B=C3=B6ker?= Date: Sat, 5 Nov 2022 22:19:49 +0100 Subject: [PATCH] OBS: Fix log containing unrelated content --- lib/OBS.rakumod | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/OBS.rakumod b/lib/OBS.rakumod index a1f6fbc..477eb12 100644 --- a/lib/OBS.rakumod +++ b/lib/OBS.rakumod @@ -205,6 +205,9 @@ method process-worklist() is serial-dedup { { $pack-log // "No log found" } EOF + + # If this build failed, the logs of the succeeding ones are not related to this build. So don't include them here. + last if $build.status{$package} ne "succeeded"; } $log .= trim-trailing; $log;