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

Modified Files:
	pkgsrc/pkgtools/pkg_install/files/add: main.c perform.c
	pkgsrc/pkgtools/pkg_install/files/admin: main.c
	pkgsrc/pkgtools/pkg_install/files/create: create.h main.c perform.c
	pkgsrc/pkgtools/pkg_install/files/delete: main.c perform.c pkg_delete.1
	pkgsrc/pkgtools/pkg_install/files/info: perform.c
	pkgsrc/pkgtools/pkg_install/files/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.1.1.1 -r1.2 pkgsrc/pkgtools/pkg_install/files/add/main.c
cvs rdiff -r1.2 -r1.3 pkgsrc/pkgtools/pkg_install/files/add/perform.c
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/pkg_install/files/admin/main.c
cvs rdiff -r1.1.1.1 -r1.2 pkgsrc/pkgtools/pkg_install/files/create/create.h \
    pkgsrc/pkgtools/pkg_install/files/create/main.c \
    pkgsrc/pkgtools/pkg_install/files/create/perform.c \
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/pkg_install/files/delete/main.c
cvs rdiff -r1.2 -r1.3 pkgsrc/pkgtools/pkg_install/files/delete/perform.c
cvs rdiff -r1.1.1.1 -r1.2 \
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/pkg_install/files/info/perform.c
cvs rdiff -r1.2 -r1.3 pkgsrc/pkgtools/pkg_install/files/lib/
cvs rdiff -r1.4 -r1.5 pkgsrc/pkgtools/pkg_install/files/lib/pkgdb.c

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