From 1793756e5f8b99d11fca3eb983a4887c5674b91b Mon Sep 17 00:00:00 2001 From: Salman Mohammadi Date: Tue, 9 Jun 2026 18:27:13 +0200 Subject: [PATCH] sources/oraclelinux-http.go: fix the iso name of Oracle Linux 10 Oracle has changed the naming scheme of Oracle Linux from OL9 onwards. It should fix the error in Jenkins which uses the Oracle website and not a mirror. Signed-off-by: Salman Mohammadi --- sources/oraclelinux-http.go | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sources/oraclelinux-http.go b/sources/oraclelinux-http.go index 354595d2..8da859f7 100644 --- a/sources/oraclelinux-http.go +++ b/sources/oraclelinux-http.go @@ -48,12 +48,14 @@ func (s *oraclelinux) Run() error { for i := 10; i >= 0; i-- { latestUpdate = fmt.Sprintf("u%d", i) - if s.definition.Image.Release == "9" { + if s.definition.Image.Release == "9" || s.definition.Image.Release == "10" { switch s.architecture { case "x86_64": - fname = fmt.Sprintf("OracleLinux-R9-U%d-%s-boot.iso", i, s.architecture) + fname = fmt.Sprintf("OracleLinux-R%s-U%d-%s-boot.iso", + s.definition.Image.Release, i, s.architecture) case "aarch64": - fname = fmt.Sprintf("OracleLinux-R9-U%d-%s-dvd.iso", i, s.architecture) + fname = fmt.Sprintf("OracleLinux-R%s-U%d-%s-dvd.iso", + s.definition.Image.Release, i, s.architecture) } }