aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/elfutils.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/elfutils.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/elfutils.go')
-rw-r--r--internal/rosa/elfutils.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/elfutils.go b/internal/rosa/elfutils.go
index 52351323..b9b500f3 100644
--- a/internal/rosa/elfutils.go
+++ b/internal/rosa/elfutils.go
@@ -7,10 +7,10 @@ func (t Toolchain) newElfutils() (pkg.Artifact, string) {
version = "0.194"
checksum = "Q3XUygUPv9vR1TkWucwUsQ8Kb1_F6gzk-KMPELr3cC_4AcTrprhVPMvN0CKkiYRa"
)
- return t.NewPackage("elfutils", version, pkg.NewHTTPGetTar(
- nil, "https://sourceware.org/elfutils/ftp/"+
+ return t.NewPackage("elfutils", version, newTar(
+ "https://sourceware.org/elfutils/ftp/"+
version+"/elfutils-"+version+".tar.bz2",
- mustDecode(checksum),
+ checksum,
pkg.TarBzip2,
), &PackageAttr{
Env: []string{