From d4bfdbed6064e4c5f7b59c6dab1a97a8618bfa0a Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Fri, 14 Aug 2020 21:12:22 +0200 Subject: [PATCH] Always refresh to todo list right before the build Otherwise we might build things twice if jobs overlap --- autobuild.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/autobuild.py b/autobuild.py index 6b1bc7a..7af675e 100644 --- a/autobuild.py +++ b/autobuild.py @@ -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)