From c13a6a7ced00e28ad8e645273fb588a42a8431ba Mon Sep 17 00:00:00 2001 From: Christoph Reiter Date: Sun, 13 Sep 2020 11:44:20 +0200 Subject: [PATCH] Error out in case we try to build packages multiple times This can happen now with -git packages where upstream has changed. --- autobuild.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/autobuild.py b/autobuild.py index a734f88..7695ff2 100644 --- a/autobuild.py +++ b/autobuild.py @@ -309,11 +309,16 @@ def run_build(args): except Exception as e: raise SystemExit("ERROR: msys2_root not functional", e) + done = set() while True: todo = get_packages_to_build()[2] if not todo: break pkg = todo[0] + key = pkg['repo'] + pkg['name'] + if key in done: + raise SystemExit("ERROR: building package again in the same run", pkg) + done.add(key) if get_soft_timeout() == 0: print("timeout reached")