ports/173515: ports-mgmt/pkg "query" fails to return 1 if a package doesn't exist.

Eitan Adler lists at eitanadler.com
Sat Nov 10 00:10:01 UTC 2012


>Number:         173515
>Category:       ports
>Synopsis:       ports-mgmt/pkg  "query" fails to return 1 if a package doesn't exist.
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 10 00:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Eitan Adler
>Release:        
>Organization:
>Environment:
>Description:
[10003 eitan at radar ~ ]%pkg query %n fooobar
[10004 eitan at radar ~ ]%echo $?             
0

I expect a return value of non-zero if the package doesn't exist. This is useful for scripting.

>How-To-Repeat:

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list