diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-19 00:03:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-19 00:44:24 +0900 |
| commit | 8807cbc7305e424725b2be8eed7ecd9234f7772e (patch) | |
| tree | 5998f055396505becf0f99fcba3c86514f00650b /internal/rosa/netfilter.go | |
| parent | 0e95573f187f64de1a46f27af67325e57037b9a9 (diff) | |
internal/rosa: create metadata alongside artifact
This enables deferring evaluation of azalea-based packages and fixes the longstanding quirk of version being disjoint from other metadata.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/netfilter.go')
| -rw-r--r-- | internal/rosa/netfilter.go | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/internal/rosa/netfilter.go b/internal/rosa/netfilter.go index f8cb68d2..4ac70878 100644 --- a/internal/rosa/netfilter.go +++ b/internal/rosa/netfilter.go @@ -39,9 +39,7 @@ index d223ac2..a7878d0 100644 ), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newLibmnl, - + native.mustRegister(Toolchain.newLibmnl, &Metadata{ Name: "libmnl", Description: "a minimalistic user-space library oriented to Netlink developers", Website: "https://www.netfilter.org/projects/libmnl/", @@ -77,9 +75,7 @@ func (t Toolchain) newLibnftnl() (pkg.Artifact, string) { ), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newLibnftnl, - + native.mustRegister(Toolchain.newLibnftnl, &Metadata{ Name: "libnftnl", Description: "a userspace library providing a low-level netlink API to the in-kernel nf_tables subsystem", Website: "https://www.netfilter.org/projects/libnftnl/", @@ -131,9 +127,7 @@ chmod +w /etc/ && ln -s ../usr/src/iptables/etc/ethertypes /etc/ ), version } func init() { - native.MustRegister(&Artifact{ - f: Toolchain.newIPTables, - + native.mustRegister(Toolchain.newIPTables, &Metadata{ Name: "iptables", Description: "the userspace command line program used to configure the Linux 2.4.x and later packet filtering ruleset", Website: "https://www.netfilter.org/projects/iptables/", |
