Subject: CVS commit: src/usr.sbin/pkg_install
To: None <source-changes@NetBSD.org>
From: grant beattie <grant@netbsd.org>
List: source-changes
Date: 02/10/2005 22:52:31
Module Name:	src
Committed By:	grant
Date:		Thu Feb 10 22:52:31 UTC 2005

Modified Files:
	src/usr.sbin/pkg_install/info: info.h main.c perform.c pkg_info.1
	src/usr.sbin/pkg_install/lib: version.h

Log Message:
rework pkg_info(8) operating on binary packages, deprecating the `-.'
argument as it is no longer required (but is retained as a no-op for
backward compatibility).

the behaviour is now what is expected and intended:

	- when the pkg argument is path (absolute or relative) to a
	  binary pkg, pkg_info operates on it.
	- when no pkg argument is given, or the argument is not a
	  binary pkg path, pkg_info operates on the installed packages.

`pkg_info foo-1.0.tgz', `pkg_info /path/to/foo-1.0.tgz', etc. now work
correctly when foo-1.0.tgz is in the cwd.

bump PKGTOOLS_VERSION to 20050210.


To generate a diff of this commit:
cvs rdiff -r1.17 -r1.18 src/usr.sbin/pkg_install/info/info.h
cvs rdiff -r1.44 -r1.45 src/usr.sbin/pkg_install/info/main.c
cvs rdiff -r1.58 -r1.59 src/usr.sbin/pkg_install/info/perform.c
cvs rdiff -r1.45 -r1.46 src/usr.sbin/pkg_install/info/pkg_info.1
cvs rdiff -r1.63 -r1.64 src/usr.sbin/pkg_install/lib/version.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.