aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/unzip.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-04-13 15:23:41 +0900
committerOphestra <cat@gensokyo.uk>2026-04-13 18:02:57 +0900
commit83b0e32c550bf47eea826be7403183bf8f412850 (patch)
treeabfe8a5c2aec066a705ba92405b8366ebcd973b2 /internal/rosa/unzip.go
parenteeaf26e7a24c5c51c64fc333284015224e851e8c (diff)
internal/rosa: helpers for common url formats
This cleans up call site of NewPackage. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/unzip.go')
-rw-r--r--internal/rosa/unzip.go6
1 files changed, 3 insertions, 3 deletions
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