Subject: pkg-manager/34136 Re: pkgtools/pkg_chk outputs errors for "-u -q" with no update conf file
To: None <email@example.com, gnats-bugs@NetBSD.org, firstname.lastname@example.org>
From: George Georgalis <email@example.com>
Date: 10/30/2006 10:57:04
I cannot figure out how to send patch to this PR
--- /usr/pkg/sbin/pkg_chk.orig 2006-10-30 10:25:21.000000000 -0500
+++ /usr/pkg/sbin/pkg_chk 2006-10-30 10:37:49.000000000 -0500
@@ -296,7 +296,7 @@
- if [ ! -r $CONF ];then
+ if [ ! -r $CONF -a -z "$opt_n" ];then
fatal "Unable to read PKGCHK_CONF '$CONF'"
This email is my best guess...
On Thu, Aug 03, 2006 at 02:37:17PM -0400, firstname.lastname@example.org wrote:
>>Synopsis: pkgtools/pkg_chk outputs errors for "-u -q" with no update conf file
>>Arrival-Date: Thu Aug 03 18:40:03 +0000 2006
>>Originator: Todd Vierling
>>Release: NetBSD 2.1.0_STABLE
>DUH.ORG: Pointing out the obvious since 1994.
>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.)
>Don't have a pkgchk_update config file, and run:
>$ pkg_chk -u -q
>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").
George Georgalis, systems architect, administrator <IXOYE><