From 7b1982c570a863f2eae76c17e1ebd34ec3e3d098 Mon Sep 17 00:00:00 2001 From: Cameron Clough Date: Sun, 2 Mar 2025 16:09:11 +0000 Subject: [PATCH] don't use alt image --- src/utils/manifest.js | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/src/utils/manifest.js b/src/utils/manifest.js index 5e16f0f..af2f376 100644 --- a/src/utils/manifest.js +++ b/src/utils/manifest.js @@ -11,12 +11,12 @@ export class ManifestImage { name /** - * SHA-256 checksum of the image, encoded as a hex string + * SHA-256 checksum of the unpacked image, encoded as a hex string * @type {string} */ checksum /** - * Size of the unpacked image in bytes + * Size of the unpacked and unsparsified image in bytes * @type {number} */ size @@ -54,15 +54,9 @@ export class ManifestImage { this.sparse = json.sparse this.fileName = `${this.name}-${json.hash_raw}.img` - if (this.name === 'system' && json.alt) { - this.checksum = json.alt.hash - this.archiveUrl = json.alt.url - this.size = json.alt.size - } else { - this.checksum = json.hash - this.archiveUrl = json.url - this.size = json.size - } + this.checksum = json.hash + this.archiveUrl = json.url + this.size = json.size this.archiveFileName = this.archiveUrl.split('/').pop() this.compressed = this.archiveFileName.endsWith('.xz')