From 56c220294aa4bc40494295a539aecfdc9d969297 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Wed, 22 Mar 2023 17:02:18 -0300 Subject: src/bin/paku: Show better versions on HTML --- src/bin/paku | 7 ++++--- 1 file 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; -
  • +
  • - $pkg->{name} - ($pkg->{label}) - $pkg->{description} + $pkg->{name} + ($ver) - $pkg->{description}

    Homepage -- cgit v1.2.3