Skip to content

Commit

Permalink
don't use alt image
Browse files Browse the repository at this point in the history
  • Loading branch information
incognitojam committed Mar 2, 2025
1 parent 9c3aa7f commit 7b1982c
Showing 1 changed file with 5 additions and 11 deletions.
16 changes: 5 additions & 11 deletions src/utils/manifest.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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')
Expand Down

0 comments on commit 7b1982c

Please sign in to comment.