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: 07/23/2003 23:03:02
Module Name:	src
Committed By:	jlam
Date:		Wed Jul 23 23:03:01 UTC 2003

Modified Files:
	src/usr.sbin/pkg_install/delete [pkgviews]: perform.c
	src/usr.sbin/pkg_install/lib [pkgviews]: lib.h

Log Message:
Teach pkg_delete(1) to delete a view's PKG_DBDIR from the +VIEWS file of
the depoted package.  This lets us use pkg_delete(1) to remove viewed
packages but still keep the information in the +VIEWS consistent with
reality.  At this point, the following two operations yield the same
results for a package "pkgname" installed into view "viewname":

	pkg_view -v viewname delete pkgname
	PKG_DBDIR=/usr/pkg/viewname/.pkgdb pkg_delete pkgname

and for the standard "null" view:

	pkg_view delete pkgname
	pkg_delete pkgname


To generate a diff of this commit:
cvs rdiff -r1.36.2.3 -r1.36.2.4 src/usr.sbin/pkg_install/delete/perform.c
cvs rdiff -r1.43.2.2 -r1.43.2.3 src/usr.sbin/pkg_install/lib/lib.h

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