diff options
author | EuAndreh <eu@euandre.org> | 2023-03-22 17:02:18 -0300 |
---|---|---|
committer | EuAndreh <eu@euandre.org> | 2023-03-22 17:02:18 -0300 |
commit | 56c220294aa4bc40494295a539aecfdc9d969297 (patch) | |
tree | 748c327e56992864d4a7011b89ccfc3ddaaeba67 /src | |
parent | Remove redundant "-latest" variants of packages in Guix and Nix (diff) | |
download | package-repository-56c220294aa4bc40494295a539aecfdc9d969297.tar.gz package-repository-56c220294aa4bc40494295a539aecfdc9d969297.tar.xz |
src/bin/paku: Show better versions on HTML
Diffstat (limited to 'src')
-rwxr-xr-x | src/bin/paku | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/bin/paku b/src/bin/paku index 94f8d38..1e7753e 100755 --- a/src/bin/paku +++ b/src/bin/paku @@ -516,12 +516,13 @@ sub emit_html() { for my $pkg (@{$json->{packages}}) { my $suffix = $pkg->{label} eq 'latest' ? '' : "-$pkg->{label}"; my $apt_suffix = $suffix =~ s/-/=/r; + my $ver = $pkg->{label} eq 'latest' ? $pkg->{label} : $pkg->{version}; print <<~EOF; - <li id="$pkg->{name}-$pkg->{label}"> + <li id="$pkg->{name}-$ver"> <details> <summary> - <a href="#$pkg->{name}-$pkg->{label}">$pkg->{name}</a> - ($pkg->{label}) - $pkg->{description} + <a href="#$pkg->{name}-$ver">$pkg->{name}</a> + ($ver) - $pkg->{description} </summary> <p> <a href="$pkg->{'base-url'}/">Homepage</a> |