ports/94054: pkg_fetch doesn't uses wrong directory (All or Latest)

Andrew Webster awebster at connectalk.com
Fri Mar 3 21:20:06 UTC 2006


>Number:         94054
>Category:       ports
>Synopsis:       pkg_fetch doesn't uses wrong directory (All or Latest)
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Mar 03 21:20:03 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Andrew Webster
>Release:        5.4-p12
>Organization:
ConnecTalk Inc.
>Environment:
FreeBSD buildbox.connectalk.com 5.4-RELEASE-p12 FreeBSD 5.4-RELEASE-p12 #1: Wed Mar  1 18:59:19 EST 2006     root at buildbox.connectalk.com:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
I'm no ruby expert, but the logic looks dubious to me.
The decision to choose the latest is based on whether or not there is 
a dash (-) in the filename.  (Line 169 of pkg_fetch).
As a result,
postgresql74-server sets latest to false.  
postgresql74 sets latest to true, however there is no such thing as
postgresql74 in packages, it is either -client or -server, etc.
I think the author was intending to use the - to indicate the 
beginning of a version number, but that logic is somewhat flawed given 
the package naming conventions.

>How-To-Repeat:
pkg_fetch -v databases/postgresql74-server
>Fix:
Need to change logic to decided when to use All or Latest directory of packages directory on remote site.
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list