Subject: pkg/33370: pkgtools/pkg_chk: some messages are not displayed
To: None <,,>
From: None <>
List: pkgsrc-bugs
Date: 04/26/2006 16:10:00
>Number:         33370
>Category:       pkg
>Synopsis:       pkgtools/pkg_chk: some messages are not displayed
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Apr 26 16:10:00 +0000 2006
>Originator:     Yoshito Komatsu
>Release:        NetBSD 3.99.18
System: NetBSD 3.99.18 NetBSD 3.99.18 (XENU) #0: Tue Apr 25 04:55:49 JST 2006 i386
Architecture: i386
Machine: i386
	pkgdirs_from_conf() uses fatal() and verbose() to display messages.
	pkgdirs_from_conf() is used with command substitution.

	So if fatal() is executed in this situation, the error message is
	not displayed and "exit 1" is executed without notice.
	# echo "PKGCHK_UPDATE_CONF=/nonexistent" >> /etc/mk.conf
	# pkg_chk -a -u -b -B

	The message "Unable to read PKGCHK_CONF '/nonexistent'"
	should be displayed, but it is not displayed.