From 1015a5ac067c6b5322fc90115accf563b6a940e3 Mon Sep 17 00:00:00 2001 From: Chaosoffire <81634128+chaosoffire@users.noreply.github.com> Date: Sat, 10 Jan 2026 22:34:13 +0800 Subject: [PATCH] sources/centos-http: Support CentOS Stream 10 checksum file CentOS Stream 10, similar to Stream 9, uses a `SHA256SUM` file for checksums rather than the `sha256sum.txt.asc` pattern used by older releases. This commit updates the logic to correctly identify and use `SHA256SUM` for CentOS Stream 10, resolving build failures where the downloader would incorrectly return a 404 for the non-existent `.asc` file. Signed-off-by: Chaosoffire <81634128+chaosoffire@users.noreply.github.com> --- sources/centos-http.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/centos-http.go b/sources/centos-http.go index 55e0e2f..5d2098a 100644 --- a/sources/centos-http.go +++ b/sources/centos-http.go @@ -89,7 +89,7 @@ func (s *centOS) Run() error { checksumFile = "sha256sum.txt" } else { checksumFile = "sha256sum.txt.asc" - if strings.HasPrefix(s.definition.Image.Release, "9") { + if strings.HasPrefix(s.definition.Image.Release, "9") || strings.HasPrefix(s.definition.Image.Release, "10") { checksumFile = "SHA256SUM" } else if strings.HasPrefix(s.definition.Image.Release, "8") { checksumFile = "CHECKSUM"