Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 10 Nov 2012 00:09:45 GMT
From:      Eitan Adler <lists@eitanadler.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/173515: ports-mgmt/pkg "query" fails to return 1 if a package doesn't exist.
Message-ID:  <201211100009.qAA09jDG011708@red.freebsd.org>
Resent-Message-ID: <201211100010.qAA0A04t097056@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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@radar ~ ]%pkg query %n fooobar
[10004 eitan@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:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201211100009.qAA09jDG011708>