From 98b795ddf06271fa8018edcd0bd15960871828fd Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 12 Dec 2023 18:29:14 +0000 Subject: [PATCH] stdlib/fedora: Check result from koji latest-build to avoid infinite loop If 'koji latest-build' command fails then we could end up in an infinite loop because 'koji wait-repo ... --build=' gives an error. --- stdlib/fedora.gl | 1 + 1 file changed, 1 insertion(+) diff --git a/stdlib/fedora.gl b/stdlib/fedora.gl index 3a8fa42..0f6b1fa 100644 --- a/stdlib/fedora.gl +++ b/stdlib/fedora.gl @@ -118,6 +118,7 @@ is-koji-built ("%pkg") : # before we can start the new build. for p in %<; do nvr=$(koji --quiet latest-build %fedora-tag $p | awk '{print $1}') + test -n "$nvr" || exit 1 while ! koji wait-repo --timeout=10000 %fedora-tag --build=$nvr; do sleep 1m; done done -- 1.8.3.1