X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=fedora_ocaml_rebuild.ml;h=9dc151d035f92875551e3252845d2f1270299e57;hb=021989b3292957a6c4059a1fecb216c4219c40d9;hp=2b270fd3480052fd05a59f420864df1bee09122b;hpb=0d2e46d0e9958d635550bbe3df0a985f129914c0;p=goaljobs-goals.git diff --git a/fedora_ocaml_rebuild.ml b/fedora_ocaml_rebuild.ml index 2b270fd..9dc151d 100644 --- a/fedora_ocaml_rebuild.ml +++ b/fedora_ocaml_rebuild.ml @@ -167,10 +167,15 @@ and specfile_updated pkg = (* For rationale behind always bumping the spec file, see comment * in 'fedora.ml'. *) - (* XXX Automate common specfile fixes. *) - let title = rebuild_name ^ " rebuild." in + let title = + if not (file_contains_string specfile rebuild_name) then + rebuild_name ^ " rebuild." + else + "Bump release and rebuild." in sh "rpmdev-bumpspec -c %s %s" (quote title) specfile; + (* XXX Automate common specfile fixes. *) + sh " cd %s echo 'Please make further changes as required to the spec file %s.spec'