diff options
author | Helmut Grohne <helmut@subdivi.de> | 2020-10-11 19:39:45 +0200 |
---|---|---|
committer | Helmut Grohne <helmut@subdivi.de> | 2020-10-11 19:39:45 +0200 |
commit | 91ae10f330cbc1c2238d2b75c6d2e4632209d0b5 (patch) | |
tree | 4924d7dbff7647e6759047f902dc06ad9b9fe258 | |
parent | 68d2f162c04f2405993f56290c579f35e0831480 (diff) | |
download | crossqa-91ae10f330cbc1c2238d2b75c6d2e4632209d0b5.tar.gz |
build.py: fix build/native confusion in function name
-rwxr-xr-x | build.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -45,7 +45,7 @@ def do_build(source, version, architecture, server): print("status %s code %d" % (status, code)) return (now, code == 0, logtarget, status == "given-back") -def get_build_arch(): +def get_native_arch() -> str: return subprocess.check_output(["dpkg", "--print-architecture"], encoding="ascii").strip() @@ -54,7 +54,7 @@ def main(): argp.add_argument("server", help="machine to build on") argp.add_argument("--buildarch", help="build architecture of the server") args = argp.parse_args() - buildarch = args.buildarch or get_build_arch() + buildarch = args.buildarch or get_native_arch() db = sqlite3.connect("db", detect_types=sqlite3.PARSE_DECLTYPES) with contextlib.closing(db.cursor()) as cur: cur.execute("BEGIN IMMEDIATE;") |