Subject: pkg/32952: pkg_chk now spewing pkg_delete commands with "-i" emulation
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <tv@duh.org>
List: pkgsrc-bugs
Date: 02/28/2006 16:50:01
>Number:         32952
>Category:       pkg
>Synopsis:       pkg_chk now spewing pkg_delete commands with "-i" emulation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Tue Feb 28 16:50:00 +0000 2006
>Originator:     Todd Vierling
>Release:        NetBSD 2.1.0_STABLE
>Organization:
DUH.ORG:  Pointing out the obvious since 1994.
>Environment:
System: NetBSD server.duh.org 2.1.0_STABLE NetBSD 2.1.0_STABLE (SERVER) #0: Thu Feb 9 10:59:56 EST 2006 tv@server.duh.org:/export/SRC/duh/netbsd-kernels/SERVER i386
Architecture: i386
Machine: i386
>Description:

"pkg_chk -i" originally just listed a human-readable set of packages which
had changed version.  Now, under the emulation "-u -n", it is also spitting
out pkg_delete commands (because -u would execute them) -- which is
nonintuitive when all the user wants is a human-readable list of changes.

>How-To-Repeat:

pkg_chk -i
  OR
pkg_chk -u -n

>Fix:

Implement some option (-N is taken, so I'm not sure what to use) that not only
suppresses execution of commands, but also suppresses displaying them as well.
Note, "use grep" is not really a reasonable solution, since the format of the
non-executed commands is not guaranteed.  And pkg_chk offered this function
before, so why not...?  :)

Then change -i emulation to use that option, for the temporary compatibility
intent.  Perhaps make the "-i is deprecated" message a little more verbose so
users who have cronjobbed "pkg_chk -i" might notice it more readily.