git: aa0b87044a - main - show all flavors of a port

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Sat, 16 Sep 2023 11:12:20 UTC
The branch main has been updated by wosch:

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

commit aa0b87044a860875635079fd9630162d28717a21
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2023-09-16 11:06:22 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2023-09-16 11:06:22 +0000

    show all flavors of a port
    
    not just the last one. e.g. the vim port has 6 flavors
    
    Reported by: Steven Nikkel <steven_nikkel@ertyu.org>
---
 website/content/en/cgi/ports.cgi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/website/content/en/cgi/ports.cgi b/website/content/en/cgi/ports.cgi
index 2de20f73e5..9883b1fb91 100755
--- a/website/content/en/cgi/ports.cgi
+++ b/website/content/en/cgi/ports.cgi
@@ -241,7 +241,7 @@ sub readindex {
         chop;
 
         @tmp            = split(/\|/);
-        $var{"$tmp[1]"} = $_;
+        $var{"$tmp[0]"} = $_;
         @s              = split( /\s+/, $tmp[6] );
         foreach (@s) {
             $msec{"$tmp[1],$_"} = 1;