diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-04-13 15:23:41 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-04-13 18:02:57 +0900 |
| commit | 83b0e32c550bf47eea826be7403183bf8f412850 (patch) | |
| tree | abfe8a5c2aec066a705ba92405b8366ebcd973b2 /internal/rosa/util-linux.go | |
| parent | eeaf26e7a24c5c51c64fc333284015224e851e8c (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/util-linux.go')
| -rw-r--r-- | internal/rosa/util-linux.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/util-linux.go b/internal/rosa/util-linux.go index 39e3ceb1..08075bc8 100644 --- a/internal/rosa/util-linux.go +++ b/internal/rosa/util-linux.go @@ -11,11 +11,11 @@ func (t Toolchain) newUtilLinux() (pkg.Artifact, string) { version = "2.42" checksum = "Uy8Nxg9DsW5YwDoeaZeZTyQJ2YmnaaL_fSsQXsLUiFFUd7wnZeD_3SEaVO7ClJlk" ) - return t.NewPackage("util-linux", version, pkg.NewHTTPGetTar( - nil, "https://www.kernel.org/pub/linux/utils/util-linux/"+ + return t.NewPackage("util-linux", version, newTar( + "https://www.kernel.org/pub/linux/utils/util-linux/"+ "v"+strings.Join(strings.SplitN(version, ".", 3)[:2], ".")+ "/util-linux-"+version+".tar.gz", - mustDecode(checksum), + checksum, pkg.TarGzip, ), &PackageAttr{ ScriptEarly: ` |
