From 67c0f1fa8798f36df097a93bc62e69d586c161a0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 29 Mar 2023 13:51:00 -0300 Subject: paku.lock: s/packages/pkgs/ --- src/bin/paku.in | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'src/bin/paku.in') diff --git a/src/bin/paku.in b/src/bin/paku.in index 72f901d..f5392bd 100755 --- a/src/bin/paku.in +++ b/src/bin/paku.in @@ -236,7 +236,7 @@ sub emit_nix() { $ns = rec { EOF my $license_mapping = $json->{mappings}{nix}{licenses}; - for my $pkg (@{$json->{packages}}) { + for my $pkg (@{$json->{pkgs}}) { my $long = $pkg->{'long-description'}; $long =~ s/^(.)/ $1/gm; my $license = license_for 'nix', $license_mapping, $pkg->{license}; @@ -323,7 +323,7 @@ sub emit_guix() { my $pkg_mapping = $json->{mappings}{guix}{packages}; my $license_mapping = $json->{mappings}{guix}{licenses}; my @pkgs = (); - for my $pkg (@{$json->{packages}}) { + for my $pkg (@{$json->{pkgs}}) { my $long = $pkg->{'long-description'}; $long =~ s/^(.)/ $1/gm; my $license = license_for 'guix', $license_mapping, $pkg->{license}; @@ -399,7 +399,7 @@ sub emit_debian() { my @debs = (); my @targets = (); - for my $pkg (@{$json->{packages}}) { + for my $pkg (@{$json->{pkgs}}) { push @targets, <<~EOF; \$(DIR)/debian/tarballs/$pkg->{fname}: mkdir -p \$(\@D) @@ -516,7 +516,7 @@ sub emit_debian() { sub emit_alpine() { my $d = $ARGV[0] or die 'Missing "src/alpine/" directory'; my $json = load_json(); - for my $pkg (@{$json->{packages}}) { + for my $pkg (@{$json->{pkgs}}) { my @subpackages = (); if ($pkg->{manpages}) { push @subpackages, "$pkg->{name}-doc"; @@ -576,7 +576,7 @@ sub emit_alpine() { my @apks = (); my @targets = (); - for my $pkg (@{$json->{packages}}) { + for my $pkg (@{$json->{pkgs}}) { next if $pkg->{architectures} ne 'any'; my $date = $pkg->{date} =~ s/-//gr; @@ -640,7 +640,7 @@ sub pascal_case($s) { sub emit_homebrew() { my $d = $ARGV[0] or die 'Missing "Formula/" directory'; my $json = load_json(); - for my $pkg (@{$json->{packages}}) { + for my $pkg (@{$json->{pkgs}}) { my $name = $pkg->{name} . ( $pkg->{label} eq 'latest' ? '' : "-$pkg->{label}" ); @@ -734,7 +734,7 @@ sub emit_html() {