# detect if a rebuild has been attempted before in this run.
# eg. "Perl 5.99 rebuild"
#
+# %fedora-retry-failed:
+# If set to 1 then failed builds are retried automatically.
+# If set to 0 then failed builds must be manually restarted.
+# Normally you want this to be 0.
+#
# %fedora-source-packages:
# List of source packages that will be rebuilt.
#
# Complete so we don't need to rebuild.
exit 0 ;;
FAILED)
- # Failed builds must be examined and fixed manually.
- exit 1 ;;
+ if [ %fedora-retry-failed -ne 0 ]; then
+ # Resubmit it automatically.
+ exit 99
+ else
+ # Fail, must be examined and retried manually.
+ exit 1
+ fi ;;
BUILDING)
# Cancel the build, we will resubmit it.
koji cancel $taskid ||: