Subject: CVS commit: [pkgviews] src/usr.sbin/pkg_install
To: None <source-changes@NetBSD.org>
From: Johnny C. Lam <jlam@netbsd.org>
List: source-changes
Date: 08/21/2003 01:57:25
Module Name:	src
Committed By:	jlam
Date:		Thu Aug 21 01:57:25 UTC 2003

Modified Files:
	src/usr.sbin/pkg_install/add [pkgviews]: perform.c
	src/usr.sbin/pkg_install/lib [pkgviews]: version.h
	src/usr.sbin/pkg_install/view [pkgviews]: pkg_view.1 pkg_view.sh

Log Message:
Teach pkg_view(1), the only tool that used PKG_DBDIR differently from
the other tools, to use PKG_DBDIR_DFLT to represent the package
database directory for the default view.

Now, this does screw people who've set PKG_DBDIR in their shell
environment or in /etc/mk.conf in order to point the package database
directory to somewhere else, e.g PKG_DBDIR=/usr/pkg/.pkgdb.  However,
I think this is a tiny change that we can stomach instead of changing
the way that the rest of the pkgsrc users have used the pkg_* tools in
the past.  We just need to inform people to change the PKG_DBDIR
setting into a PKG_DBDIR_DFLT setting.

The only bad thing that can happen if a user fails to make this change
is that when they try to pkg_add(1) a binary depoted package, the
package metadata files will be stored in /var/db/pkg instead of
wherever the user normally stores the package metadata files.  If
anyone knows of a nice way to warn the user that this is happening,
I'd love to know, so that I can modify pkg_view(1) to check for this
case.


To generate a diff of this commit:
cvs rdiff -r1.70.2.6 -r1.70.2.7 src/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.13.4.10 -r1.13.4.11 src/usr.sbin/pkg_install/lib/version.h
cvs rdiff -r1.1.2.8 -r1.1.2.9 src/usr.sbin/pkg_install/view/pkg_view.1
cvs rdiff -r1.1.2.22 -r1.1.2.23 src/usr.sbin/pkg_install/view/pkg_view.sh

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