From 30eb0d6a613ad268f6805ccbcdcabf158e7f526f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Sun, 17 May 2026 13:07:12 +0900 Subject: internal/rosa: key metadata by string For upcoming azalea integration. The API is quite ugly right now to ease migration. Signed-off-by: Ophestra --- internal/rosa/xz.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'internal/rosa/xz.go') diff --git a/internal/rosa/xz.go b/internal/rosa/xz.go index a211bded..e74aadc0 100644 --- a/internal/rosa/xz.go +++ b/internal/rosa/xz.go @@ -2,12 +2,12 @@ package rosa import "hakurei.app/internal/pkg" -func (t Toolchain) newXZ() (pkg.Artifact, string) { +func (t Toolchain) newXZ(s *S) (pkg.Artifact, string) { const ( version = "5.8.3" checksum = "nCdayphPGdIdVoAZ2hR4vYlhDG9LeVKho_i7ealTud4Vxy5o5dWe0VwFlN7utuUL" ) - return t.NewPackage("xz", version, newFromGitHubRelease( + return s.NewPackage(t, "xz", version, newFromGitHubRelease( "tukaani-project/xz", "v"+version, "xz-"+version+".tar.bz2", @@ -18,7 +18,7 @@ func (t Toolchain) newXZ() (pkg.Artifact, string) { ), version } func init() { - artifactsM[XZ] = Metadata{ + native.MustRegister(&Artifact{ f: Toolchain.newXZ, Name: "xz", @@ -26,5 +26,5 @@ func init() { Website: "https://tukaani.org/xz/", ID: 5277, - } + }) } -- cgit v1.3.1