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/toybox.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/toybox.go')
| -rw-r--r-- | internal/rosa/toybox.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/toybox.go b/internal/rosa/toybox.go index 86a66246..7a86fb80 100644 --- a/internal/rosa/toybox.go +++ b/internal/rosa/toybox.go @@ -7,9 +7,9 @@ func (t Toolchain) newToybox(suffix, script string) (pkg.Artifact, string) { version = "0.8.13" checksum = "rZ1V1ATDte2WeQZanxLVoiRGdfPXhMlEo5-exX-e-ml8cGn9qOv0ABEUVZpX3wTI" ) - return t.NewPackage("toybox"+suffix, version, pkg.NewHTTPGetTar( - nil, "https://landley.net/toybox/downloads/toybox-"+version+".tar.gz", - mustDecode(checksum), + return t.NewPackage("toybox"+suffix, version, newTar( + "https://landley.net/toybox/downloads/toybox-"+version+".tar.gz", + checksum, pkg.TarGzip, ), &PackageAttr{ // uses source tree as scratch space |
