Subject: CVS commit: othersrc/bootstrap-pkgsrc/pkg_install
To: None <>
From: Jan Schaumann <>
List: source-changes
Date: 01/14/2003 17:18:59
Module Name:	othersrc
Committed By:	jschauma
Date:		Tue Jan 14 15:18:59 UTC 2003

Modified Files:
	othersrc/bootstrap-pkgsrc/pkg_install/add: main.c perform.c
	othersrc/bootstrap-pkgsrc/pkg_install/admin: main.c
	othersrc/bootstrap-pkgsrc/pkg_install/create: create.h main.c perform.c
	othersrc/bootstrap-pkgsrc/pkg_install/delete: main.c perform.c
	othersrc/bootstrap-pkgsrc/pkg_install/info: perform.c
	othersrc/bootstrap-pkgsrc/pkg_install/lib: pkgdb.c

Log Message:
Synch with latest changes from src (changes by agc, synch ok'd by agc)

Add a pkgdb_remove_pkg() function and use it in pkg_delete(1).

Bump lib/version.h due to added functionality.

Order the getopt(3) options alphabetically.

Introduce the notion of "preserving" an installed package.

A preserved package may not be deleted by pkg_delete(1) (unless the -f
option is given), and the preserved capability will be carried into
any binary package. pkg_add(1) will also keep the preserved capability
if it was present in the binary package.

The "preserve" capability can be given to a package by using the
PKG_PRESERVE definition in a package Makefile in pkgsrc.

Ride on the recently-bumped lib/version.h for new functionality.

To generate a diff of this commit:
cvs rdiff -r1.6 -r1.7 othersrc/bootstrap-pkgsrc/pkg_install/add/main.c
cvs rdiff -r1.3 -r1.4 othersrc/bootstrap-pkgsrc/pkg_install/add/perform.c
cvs rdiff -r1.6 -r1.7 othersrc/bootstrap-pkgsrc/pkg_install/admin/main.c
cvs rdiff -r1.1.1.1 -r1.2 \
cvs rdiff -r1.3 -r1.4 othersrc/bootstrap-pkgsrc/pkg_install/create/main.c
cvs rdiff -r1.4 -r1.5 othersrc/bootstrap-pkgsrc/pkg_install/create/perform.c
cvs rdiff -r1.2 -r1.3 \
cvs rdiff -r1.6 -r1.7 othersrc/bootstrap-pkgsrc/pkg_install/delete/main.c
cvs rdiff -r1.4 -r1.5 othersrc/bootstrap-pkgsrc/pkg_install/delete/perform.c
cvs rdiff -r1.2 -r1.3 \
cvs rdiff -r1.5 -r1.6 othersrc/bootstrap-pkgsrc/pkg_install/info/perform.c
cvs rdiff -r1.9 -r1.10 othersrc/bootstrap-pkgsrc/pkg_install/lib/
cvs rdiff -r1.6 -r1.7 othersrc/bootstrap-pkgsrc/pkg_install/lib/pkgdb.c

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