Skip to content

Commit

Permalink
fix(aosd): Exclusively support SHA256 checksums
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Goth <[email protected]>
Signed-off-by: Sebastian Schuberth <[email protected]>
  • Loading branch information
sschuberth committed Nov 19, 2024
1 parent 4dbbf12 commit fc7ca86
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plugins/reporters/aosd/src/main/kotlin/Aosd2Reporter.kt
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,7 @@ private fun RemoteArtifact.toDeployPackage(): AOSD2.DeployPackage =

private fun Hash.toChecksums(): AOSD2.Checksums =
when (algorithm) {
HashAlgorithm.MD5 -> AOSD2.Checksums(md5 = value)
HashAlgorithm.SHA1 -> AOSD2.Checksums(sha1 = value)
// Other algorithms than SHA256 create an error message when importing.
HashAlgorithm.SHA256 -> AOSD2.Checksums(sha256 = value)
else -> AOSD2.Checksums(integrity = value)
}

0 comments on commit fc7ca86

Please sign in to comment.