pkgsrc-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg-manager/34136 Re: pkgtools/pkg_chk outputs errors for "-u -q" with no update conf file



I cannot figure out how to send patch to this PR
http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=34136

--- /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 @@
     {
     CONF=$1; shift
     LIST="$*"
-    if [ ! -r $CONF ];then
+    if [ ! -r $CONF -a -z "$opt_n" ];then
        fatal "Unable to read PKGCHK_CONF '$CONF'"
     fi
 


This email is my best guess...

Thanks,
// George


On Thu, Aug 03, 2006 at 02:37:17PM -0400, tv%pobox.com@localhost wrote:
>
>>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").

-- 
George Georgalis, systems architect, administrator <IXOYE><



Home | Main Index | Thread Index | Old Index