# 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
exit 1 ;;
BUILDING)
# Cancel the build, we will resubmit it.
- $koji cancel $taskid
+ $koji cancel $taskid ||:
exit 99 ;;
CANCELED|DELETED)
# Do a rebuild.