Don't koji wait-repo "rawhide", since that repo doesn't really exist or something.
[goaljobs-goals.git] / fedora_ocaml_rebuild.ml
index 54a2551..90e4db2 100644 (file)
@@ -9,17 +9,18 @@ open Git
 open Fedora
 
 let branch = "master"
-let side_tag = Some "f27-ocaml"
+(*let side_tag = Some "f27-ocaml"*)
+let side_tag = None
 
 let koji_target =
   match side_tag with
   | Some t -> t
-  | None -> "rawhide"
+  | None -> "f27-build" (* see: https://pagure.io/koji/issue/485 *)
 
 (* The name of the rebuild, and also the magic substring that must
  * appear in the %changelog when the package has been rebuilt.
  *)
-let rebuild_name = "OCaml 4.04.1"
+let rebuild_name = "OCaml 4.04.2"
 
 (* Local repository that contains build dependencies. *)
 let yum_repo = "koji-rawhide"
@@ -41,7 +42,12 @@ let ignored pkg = List.mem pkg ignored
 
 (* List of OCaml-related source package names. *)
 let source_packages =
-  let dirs = shlines "cd %s && ls -1d ocaml*" fedora_dir in
+  let dirs = shlines "
+       cd %s && \
+       for f in ocaml*; do
+         [ -f \"$f/master/$f.spec\" ] && echo \"$f\"
+       done
+  " fedora_dir in
   dirs @ [ "alt-ergo"; "apron"; "brltty"; "coccinelle"; "coq";
            "cduce"; "frama-c"; "gappalib-coq"; "graphviz"; "hevea"; "hivex";
            "plplot"; "virt-top"; "why3"; "z3";