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/24/2003 23:14:54
Module Name:	src
Committed By:	jlam
Date:		Thu Jul 24 23:14:53 UTC 2003

Modified Files:
	src/usr.sbin/pkg_install/delete [pkgviews]: perform.c pkg_delete.1
	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_delete(1) and pkg_view(1) about using VIEW-INSTALL and
VIEW-DEINSTALL actions for the INSTALL/DEINSTALL scripts.  The
VIEW-INSTALL action is run after a package is added to a view, and the
VIEW-DEINSTALL action is run before a package is removed from a view.

Be backwards compatible with using pkg_delete(1) to remove existing
non-depoted packages by not executing the VIEW-DEINSTALL action.

Also, test for +DEPOT in pkg_view(1) to check whether a package is part
of a view or not since +DEPOT is only present for "viewed" packages.


To generate a diff of this commit:
cvs rdiff -r1.36.2.4 -r1.36.2.5 src/usr.sbin/pkg_install/delete/perform.c
cvs rdiff -r1.24.4.1 -r1.24.4.2 src/usr.sbin/pkg_install/delete/pkg_delete.1
cvs rdiff -r1.13.4.2 -r1.13.4.3 src/usr.sbin/pkg_install/lib/version.h
cvs rdiff -r1.1.2.4 -r1.1.2.5 src/usr.sbin/pkg_install/view/pkg_view.1
cvs rdiff -r1.1.2.12 -r1.1.2.13 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.