diff options
author | Helmut Grohne <helmut@subdivi.de> | 2020-10-07 18:02:42 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2020-10-07 18:02:42 +0200 |
commit | d8a9b7aa8c9882fdfc619e1ce27b71f207015762 (patch) | |
tree | 610175639232a91fbd9f881f85b1fb79da622bc3 /build.py | |
parent | 7b5da3c5b65ee5633c42616d3e6ca3f3c7d4785c (diff) | |
download | crossqa-d8a9b7aa8c9882fdfc619e1ce27b71f207015762.tar.gz |
add build architecture to schema of building table
Diffstat (limited to 'build.py')
-rwxr-xr-x | build.py | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -63,7 +63,8 @@ def main(): WHERE d.satisfiable = 1 AND depcheck.giveback = 0 AND NOT EXISTS (SELECT 1 FROM building WHERE d.source = building.source - OR d.architecture = building.architecture) + OR ('amd64' = building.buildarch AND + d.architecture = building.hostarch) ORDER BY r.priority DESC, r.requesttime ASC, random() LIMIT 1;""") row = cur.fetchone() @@ -81,9 +82,9 @@ def main(): time.sleep(60) return source, version, architecture, requestid = row - cur.execute("""INSERT INTO building (source, architecture, pid) - VALUES (?, ?, ?);""", - (source, architecture, os.getpid())) + cur.execute("""INSERT INTO building (source, buildarch, hostarch, pid) + VALUES (?, ?, ?, ?);""", + (source, 'amd64', architecture, os.getpid())) cur.execute("COMMIT;") try: print("building %s_%s for %s%s" % |