X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=stdlib%2Ffedora.gl;fp=stdlib%2Ffedora.gl;h=3a8fa42cc2919795228ca0aa8dbc9ebe60736880;hb=3b92230de8ea7eafa4388e27a25d5e2a3ebf4a7d;hp=ef515c6d238dab459e2a20a6170d6117369aa1dc;hpb=a859ccb1809e6514a9e0119f1cb6be2862237680;p=goals.git diff --git a/stdlib/fedora.gl b/stdlib/fedora.gl index ef515c6..3a8fa42 100644 --- a/stdlib/fedora.gl +++ b/stdlib/fedora.gl @@ -34,6 +34,11 @@ # 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. # @@ -82,8 +87,13 @@ predicate is-koji-built (pkg) = { # 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 ||: