Fix another format string

This commit is contained in:
Sven-Hendrik Haase 2020-10-20 02:22:37 +02:00
parent b6d16e1829
commit ff691ecc2a
No known key found for this signature in database
GPG Key ID: 39E4B877E62EB915

View File

@ -30,7 +30,7 @@ def upload(name):
template = Path("Dockerfile.template").read_text()
full_url = f"{project_url}{uploaded_url}"
replaced = template.replace("TEMPLATE_ROOTFS_URL", full_url)
rootfs_sha256 = Path('output/{name}.tar.xz.SHA256').read_text()[0:64]
rootfs_sha256 = Path(f"output/{name}.tar.xz.SHA256").read_text()[0:64]
hash_string = f"{rootfs_sha256} {filename}"
replaced = replaced.replace(
"TEMPLATE_ROOTFS_HASH", hash_string