From 6c7870228409d1f1c909fe239b555ab09bfd86d1 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 8 Jan 2020 21:58:18 +0000 Subject: [PATCH] Ignore certain optional commands failing. --- Goalfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Goalfile b/Goalfile index 78a00cf..c5154fa 100644 --- a/Goalfile +++ b/Goalfile @@ -61,7 +61,7 @@ tactic *built-in-koji (pkg) = { # Else we must check Koji itself. # Koji sends some messages to stderr. nvr=$(fedpkg verrel) - buildinfo=$($koji buildinfo $nvr 2>&1) + buildinfo=$($koji buildinfo $nvr 2>&1 ||:) # No build at all, needs rebuild. echo "$buildinfo" | grep -sq "No such build" && exit 99 @@ -79,7 +79,7 @@ tactic *built-in-koji (pkg) = { exit 1 ;; BUILDING) # Cancel the build, we will resubmit it. - $koji cancel $taskid + $koji cancel $taskid ||: exit 99 ;; CANCELED|DELETED) # Do a rebuild. -- 1.8.3.1