libguestfs: Use python3 for builds and the Python PIP package.
[goaljobs-goals.git] / libguestfs_fedora.ml
index c101613..1c08bff 100644 (file)
@@ -22,10 +22,11 @@ let package = "libguestfs"
 
 (* How branches in libguestfs upstream map to branches in Fedora. *)
 let branches = [
-  "1.29-development", "master";    (* Rawhide follows development. *)
-  "1.29-development", "f22";       (* F22 follows development (for now). *)
-  "1.28-stable", "f21";            (* F21 follows 1.28. *)
-  "1.26-stable", "f20";            (* F20 follows 1.26. *)
+(*  "1.41-development", "master";    (* Rawhide follows development. *)*)
+  "1.40-stable", "master";
+  "1.40-stable", "f29";            (* F29 follows development. *)
+  "1.38-stable", "f28";            (* F28 follows 1.38. *)
+  "1.38-stable", "f27";            (* F27 follows 1.38. *)
 ]
 
 (* Goal: Latest website version has been built in every branch. *)
@@ -63,10 +64,19 @@ and sources_uploaded version branch =
 
   require (repodir_up_to_date repodir);
 
-  sh "
-    cd %s
-    fedpkg new-sources %s/%s
-  " repodir libguestfs_website_repo version.urlpath
+  if not version.is_stable then (
+    sh "
+      cd %s
+      fedpkg new-sources %s/%s
+    " repodir libguestfs_download_repo version.urlpath
+  ) else (
+    sh "
+      cd %s
+      fedpkg new-sources %s/%s %s/%s.sig
+    "  repodir
+       libguestfs_download_repo version.urlpath
+       libguestfs_download_repo version.urlpath
+  )
 
 and specfile_updated version branch =
   let repodir = fedora_repo package branch in
@@ -94,7 +104,8 @@ and specfile_updated version branch =
 
 and specfile_committed version branch =
   let repodir = fedora_repo package branch in
-  let key = sprintf "libguestfs_fedora_specfile_committed_%s" version.version in
+  let key = sprintf "libguestfs_fedora_specfile_committed_%s_%s"
+    branch version.version in
 
   target (memory_exists key);
   onrun (fun () -> memory_set key "1");
@@ -108,7 +119,8 @@ and specfile_committed version branch =
 
 and specfile_pushed version branch =
   let repodir = fedora_repo package branch in
-  let key = sprintf "libguestfs_fedora_specfile_pushed_%s" version.version in
+  let key =
+    sprintf "libguestfs_fedora_specfile_pushed_%s_%s" branch version.version in
 
   target (memory_exists key);
   onrun (fun () -> memory_set key "1");