Subject: pkg/34136: pkgtools/pkg_chk outputs errors for "-u -q" with no update conf file
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <tv@pobox.com>
List: pkgsrc-bugs
Date: 08/03/2006 18:40:03
>Number:         34136
>Category:       pkg
>Synopsis:       pkgtools/pkg_chk outputs errors for "-u -q" with no update conf file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Thu Aug 03 18:40:03 +0000 2006
>Originator:     Todd Vierling
>Release:        NetBSD 2.1.0_STABLE
>Organization:
DUH.ORG:  Pointing out the obvious since 1994.
>Environment:
N/A

>Description:

Recently I'm now seeing the following from pkg_chk (1.77, but I don't know
what revision started this):

*** Unable to read PKGCHK_CONF '/usr/pkgsrc/pkgchk_update-server.duh.org.conf'

That's nice and all, but there should be no reason to require a configuration
file when using "-u -q", which *only* reports on version number mismatches.
It seems that $opt_q should be skipping something and is not doing so.

("-u -q" is the replacement for the old "-i" option.  When using "-u -q",
pkg_chk should check the versions of installed packages and then simply exit
without further processing.)

>How-To-Repeat:

Don't have a pkgchk_update config file, and run:
$ pkg_chk -u -q

>Fix:

This is new stuff in pkg_chk, so I'm leery of touching it lest it breaks
something.  I only use pkg_chk for *checking* for changes; I have never
used it for actually doing upgrades (as I use "make replace" most of the
time, not "make update").