mirror of
https://github.com/commaai/agnos-builder.git
synced 2026-07-21 06:42:07 +08:00
build and push full release in CI to commaai/ci-artifacts (#287)
* package_ota.py & upload to commaai/ci-artifacts * fix simg2img incorrectly using shell=True [upload] * fix output path * [upload] * Apply suggestions from code review --------- Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
This commit is contained in:
@@ -34,7 +34,7 @@ def process_file(fn, name, sparse=False, full_check=True, has_ab=True, alt=None)
|
||||
if sparse:
|
||||
with NamedTemporaryFile() as tmp_f:
|
||||
print(" converting sparse image to raw")
|
||||
subprocess.check_call(["simg2img", fn, tmp_f.name], shell=True)
|
||||
subprocess.check_call(["simg2img", fn, tmp_f.name])
|
||||
hash_raw = checksum(tmp_f.name)
|
||||
size = Path(tmp_f.name).stat().st_size
|
||||
print(f" {size} bytes, hash {hash} (raw)")
|
||||
|
||||
Reference in New Issue
Block a user