Fix manifest version in incremental build

This commit is contained in:
themylogin
2020-07-02 00:03:16 +02:00
parent c46005cc41
commit 8f8fb76a84
2 changed files with 5 additions and 2 deletions

View File

@@ -730,7 +730,7 @@ sign_manifest() {
}
build_manifest() {
python3 scripts/build_manifest.py "$UPDATE_DIR" "$CHROOT_BASEDIR" "$VERSION"
python3 scripts/build_manifest.py "$UPDATE_DIR" "$CHROOT_BASEDIR"
}
build_update_image() {

View File

@@ -8,7 +8,10 @@ import subprocess
import sys
if __name__ == "__main__":
output, rootfs, version = sys.argv[1:]
output, rootfs = sys.argv[1:]
with open(os.path.join(rootfs, "etc/version")) as f:
version = f.read().strip()
size = int(int(subprocess.run(
["du", "--block-size", "1", "-d", "0", "-x", rootfs],