Fix koji wait-repo command.
[fedora-ocaml-rebuild.git] / Goalfile
index 0d94149..0898431 100644 (file)
--- a/Goalfile
+++ b/Goalfile
@@ -98,8 +98,9 @@ goal rebuild (pkg) =
 
     # We have to wait for the dependencies to become available
     # before we can start the new build.
-    for p in $($koji latest-build %< | awk '{print $1}'); do
-        $koji --quiet wait-repo side-tag
+    for p in %<; do
+        nvr=$($koji --quiet latest-build %side-tag $p | awk '{print $1}')
+        $koji wait-repo %side-tag $nvr
     done
 
     # If the specfile doesn't have the magic string then add