git: 11cd18c6f8 - main - ports.cgi: show and filter existing flavor(s)

Wolfram Schneider <[email protected]>
Newsgroups gmane.os.freebsd.devel.cvs.doc
Message-ID <[email protected]>
The branch main has been updated by wosch:

URL: https://cgit.FreeBSD.org/doc/commit/?id=11cd18c6f8fb878d3ddeb9dd9f51219b837be3c3

commit 11cd18c6f8fb878d3ddeb9dd9f51219b837be3c3
Author:     Wolfram Schneider <[email protected]>
AuthorDate: 2026-02-02 13:05:29 +0000
Commit:     Wolfram Schneider <[email protected]>
CommitDate: 2026-02-02 13:05:29 +0000

    ports.cgi: show and filter existing flavor(s)
---
 website/content/en/cgi/ports.cgi | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index c379fa2be3..c7f2dba997 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -462,6 +462,12 @@ qq{ <th onclick="sort_table(2)" title="click to sort asc/desc by build time">Bui
         my $time     = $perl->{"annotations"}->{"build_timestamp"} // "";
         my $version  = $perl->{"version"};
         my $repopath = $perl->{"repopath"};
+        my $flavor   = $perl->{"annotations"}->{"flavor"} // "";
+
+        # show flavor
+        if ($flavor) {
+            $release = $release . " (" . $flavor . ")";
+        }
 
         $time =~ s/\+\d{4}$//;
         $time =~ s/T(\d\d):(\d\d):(\d\d)$/ $1:$2/;
@@ -475,7 +481,8 @@ qq{ <th onclick="sort_table(2)" title="click to sort asc/desc by build time">Bui
               if index( $release, $filter ) < 0
               && index( $pkg_opt, $filter ) < 0
               && index( $version, $filter ) < 0
-              && index( $time,    $filter ) < 0;
+              && index( $time,    $filter ) < 0
+              && index( $flavor,  $filter ) < 0;
         }
 
         next if $counter >= $max;
@@ -498,6 +505,7 @@ qq{ <th onclick="sort_table(2)" title="click to sort asc/desc by build time">Bui
         $hash->{'version'}->{$version}++;
         $hash->{'arch'}->{$arch}++;
         $hash->{'release'}->{$rel}++;
+        $hash->{'flavor'}->{$flavor}++ if $flavor ne "";
         $hash->{'snapshot'}->{$snapshot}++
           if $snapshot eq 'latest' || $snapshot eq 'quarterly';
     }
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.