Error out in case we try to build packages multiple times
This can happen now with -git packages where upstream has changed.
This commit is contained in:
parent
a4c1f3f48e
commit
c13a6a7ced
@ -309,11 +309,16 @@ def run_build(args):
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
raise SystemExit("ERROR: msys2_root not functional", e)
|
raise SystemExit("ERROR: msys2_root not functional", e)
|
||||||
|
|
||||||
|
done = set()
|
||||||
while True:
|
while True:
|
||||||
todo = get_packages_to_build()[2]
|
todo = get_packages_to_build()[2]
|
||||||
if not todo:
|
if not todo:
|
||||||
break
|
break
|
||||||
pkg = todo[0]
|
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:
|
if get_soft_timeout() == 0:
|
||||||
print("timeout reached")
|
print("timeout reached")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user