Use koji build directly instead of fedpkg build.
[fedora-ocaml-rebuild.git] / Goalfile
index 19ed946..6d4ef07 100644 (file)
--- a/Goalfile
+++ b/Goalfile
@@ -103,7 +103,12 @@ goal rebuild (pkg) =
     fi
     fedpkg commit -c
     fedpkg push
-    fedpkg build
+    if [ %koji = "koji" ]; then
+        fedpkg build
+    else
+        hash=$(git rev-parse HEAD)
+        %koji build "git+https://src.fedoraproject.org/rpms/"%pkg".git#$hash" %side-tag
+    fi
 }
 
 # Get the source package names for a particular package.