aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/bzip2.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/bzip2.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/bzip2.go')
-rw-r--r--internal/rosa/bzip2.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/bzip2.go b/internal/rosa/bzip2.go
index 776e90a8..d7dd1380 100644
--- a/internal/rosa/bzip2.go
+++ b/internal/rosa/bzip2.go
@@ -7,9 +7,9 @@ func (t Toolchain) newBzip2() (pkg.Artifact, string) {
version = "1.0.8"
checksum = "cTLykcco7boom-s05H1JVsQi1AtChYL84nXkg_92Dm1Xt94Ob_qlMg_-NSguIK-c"
)
- return t.NewPackage("bzip2", version, pkg.NewHTTPGetTar(
- nil, "https://sourceware.org/pub/bzip2/bzip2-"+version+".tar.gz",
- mustDecode(checksum),
+ return t.NewPackage("bzip2", version, newTar(
+ "https://sourceware.org/pub/bzip2/bzip2-"+version+".tar.gz",
+ checksum,
pkg.TarGzip,
), &PackageAttr{
Writable: true,