From 83b0e32c550bf47eea826be7403183bf8f412850 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Mon, 13 Apr 2026 15:23:41 +0900 Subject: internal/rosa: helpers for common url formats This cleans up call site of NewPackage. Signed-off-by: Ophestra --- internal/rosa/unzip.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'internal/rosa/unzip.go') diff --git a/internal/rosa/unzip.go b/internal/rosa/unzip.go index b8fa3de3..7dd8f01c 100644 --- a/internal/rosa/unzip.go +++ b/internal/rosa/unzip.go @@ -22,11 +22,11 @@ make -f unix/Makefile generic1 mkdir -p /work/system/bin/ mv unzip /work/system/bin/ `, pkg.Path(AbsUsrSrc.Append("unzip"), true, t.NewPatchedSource( - "unzip", version, pkg.NewHTTPGetTar( - nil, "https://downloads.sourceforge.net/project/infozip/"+ + "unzip", version, newTar( + "https://downloads.sourceforge.net/project/infozip/"+ "UnZip%206.x%20%28latest%29/UnZip%20"+version+"/"+ "unzip"+strings.ReplaceAll(version, ".", "")+".tar.gz", - mustDecode(checksum), + checksum, pkg.TarGzip, ), false, ))), version -- cgit v1.3.1