Wait for dependencies to appear in the repo before building.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Jan 2020 11:50:14 +0000 (11:50 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 7 Jan 2020 11:50:28 +0000 (11:50 +0000)
Goalfile

index 67691bf..19ed946 100644 (file)
--- a/Goalfile
+++ b/Goalfile
@@ -88,6 +88,12 @@ goal rebuild (pkg) =
     cd %fedora-dir/%pkg/%branch
     specfile=%pkg.spec
 
+    # 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
+    done
+
     # If the specfile doesn't have the magic string then add
     # that now.
     if ! grep -sq %rebuild-name $specfile; then