Always refresh to todo list right before the build

Otherwise we might build things twice if jobs overlap
This commit is contained in:
Christoph Reiter 2020-08-14 21:12:22 +02:00
parent 0b97ca09bd
commit d4bfdbed60

View File

@ -273,7 +273,12 @@ def run_build(args):
except Exception as e:
raise SystemExit("ERROR: msys2_root not functional", e)
for pkg in get_packages_to_build()[2]:
while True:
todo = get_packages_to_build()[2]
if not todo:
break
pkg = todo[0]
with gha_group(f"[{ pkg['repo'] }] { pkg['name'] }..."):
try:
build_package(pkg, msys2_root, builddir)