From 695f007ab3eac0e1988cd59eba69f7451788bc4d Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 7 Jan 2020 11:50:14 +0000 Subject: [PATCH] Wait for dependencies to appear in the repo before building. --- Goalfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Goalfile b/Goalfile index 67691bf..19ed946 100644 --- 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 -- 1.8.3.1