From: Richard W.M. Jones Date: Wed, 8 Jan 2020 21:58:18 +0000 (+0000) Subject: Ignore certain optional commands failing. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=6c7870228409d1f1c909fe239b555ab09bfd86d1;hp=cf6fb19e5c15117dabead039180a9485cc3aa286;p=fedora-ocaml-rebuild.git Ignore certain optional commands failing. --- 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.