Ignore certain optional commands failing.
authorRichard W.M. Jones <rjones@redhat.com>
Wed, 8 Jan 2020 21:58:18 +0000 (21:58 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Wed, 8 Jan 2020 21:58:18 +0000 (21:58 +0000)
Goalfile

index 78a00cf..c5154fa 100644 (file)
--- 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.