git.annexia.org
/
goaljobs-goals.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Factor out 'git fetch' into a separate goal.
[goaljobs-goals.git]
/
fedora_ocaml_rebuild.ml
diff --git
a/fedora_ocaml_rebuild.ml
b/fedora_ocaml_rebuild.ml
index
2b270fd
..
9dc151d
100644
(file)
--- 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'.
*)
(* 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;
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'
sh "
cd %s
echo 'Please make further changes as required to the spec file %s.spec'