[Bug 260517] ports-mgmt/fastest_pkg exemplify latest only if latest is already preferred

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 18 Dec 2021 15:24:56 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=260517

            Bug ID: 260517
           Summary: ports-mgmt/fastest_pkg exemplify latest only if latest
                    is already preferred
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
               URL: https://forums.freebsd.org/posts/547089
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: ehaupt@FreeBSD.org
          Reporter: grahamperrin@gmail.com
          Assignee: ehaupt@FreeBSD.org
             Flags: maintainer-feedback?(ehaupt@FreeBSD.org)

<https://github.com/ehaupt/fastest_pkg/blob/5bd4e8c1794cfaa7e0a3231a50568b14e021417d/fastest_pkg#L138-L139>

A user in FreeBSD Forums observed that the post-test example states 'latest'
without checking whether there's a preference for quarterly. 

Please, can the script be improved? 

To detect the preference near the tail of the  
              url value within 
              /etc/pkg/FreeBSD.conf 
and for the output to state    latest       if    latest is preferred; 
                               quarterly    if quarterly is preferred; 
                               release_0    if release_0 is preferred; 
                               … and so on. 

Thanks

-- 
You are receiving this mail because:
You are the assignee for the bug.