From: Richard W.M. Jones Date: Tue, 7 Jan 2020 11:50:14 +0000 (+0000) Subject: Wait for dependencies to appear in the repo before building. X-Git-Url: http://git.annexia.org/?a=commitdiff_plain;h=695f007ab3eac0e1988cd59eba69f7451788bc4d;hp=ea68fba0d79905297dd256a1c54580155ed797c1;p=fedora-ocaml-rebuild.git Wait for dependencies to appear in the repo before building. --- 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