aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/kmod.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/kmod.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/kmod.go')
-rw-r--r--internal/rosa/kmod.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/kmod.go b/internal/rosa/kmod.go
index ddb2a178..380b3846 100644
--- a/internal/rosa/kmod.go
+++ b/internal/rosa/kmod.go
@@ -7,10 +7,10 @@ func (t Toolchain) newKmod() (pkg.Artifact, string) {
version = "34.2"
checksum = "0K7POeTKxMhExsaTsnKAC6LUNsRSfe6sSZxWONPbOu-GI_pXOw3toU_BIoqfBhJV"
)
- return t.NewPackage("kmod", version, pkg.NewHTTPGetTar(
- nil, "https://www.kernel.org/pub/linux/utils/kernel/"+
+ return t.NewPackage("kmod", version, newTar(
+ "https://www.kernel.org/pub/linux/utils/kernel/"+
"kmod/kmod-"+version+".tar.gz",
- mustDecode(checksum),
+ checksum,
pkg.TarGzip,
), nil, &MesonHelper{
Setup: []KV{