Subject: bin/11837: pkg_info -a cannot show COMMENT with PKG_PATH set to an ftp site
To: None <gnats-bugs@gnats.netbsd.org>
From: None <anders@dinsen.net>
List: netbsd-bugs
Date: 12/28/2000 15:31:20
>Number:         11837
>Category:       bin
>Synopsis:       pkg_info -a cannot show COMMENT with PKG_PATH set to an ftp site
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Dec 28 15:31:00 PST 2000
>Closed-Date:
>Last-Modified:
>Originator:     Anders Dinsen
>Release:        NetBSD-1.5
>Organization:
Anders Dinsen
anders@dinsen.net
http://dinsen.net/anders/
>Environment:
System: NetBSD box 1.5 NetBSD 1.5 (BOX) #0: Wed Dec 27 21:49:47 CET 2000 anders@box:/usr/src/sys/arch/i386/compile/BOX i386


>Description:
	Running 'pkg_info -a' with PKG_PATH set to an FTP site 
	opens a connection to the site for reading the contents of the
	package. Specifically pkg_info complains that it cannot read
	+COMMENT.

	I see no reason for trying to read the package file?
	The information I want is in /var/db/pkg/...

	Setting PKG_PATH to a directory with package files seems to do the
	same (the package files are read) except that the command does'nt
	display any error messages.

>How-To-Repeat:
	setenv PKG_PATH ftp://nowhere.com/
	pkg_info
>Fix:
	I can work around the bug by 'unsetenv PKG_PATH' before running
	pkg_info -a.
>Release-Note:
>Audit-Trail:
>Unformatted: