Subject: CVS commit: basesrc
To: None <source-changes@netbsd.org>
From: Hubert Feyrer <hubertf@netbsd.org>
List: source-changes
Date: 03/18/2001 05:20:29
Module Name:	basesrc
Committed By:	hubertf
Date:		Sun Mar 18 03:20:29 UTC 2001

Modified Files:
	basesrc/usr.sbin/pkg_install/add: main.c perform.c pkg_add.1
	basesrc/usr.sbin/pkg_install/lib: lib.h

Log Message:
Add -u switch to pkg_add to do a very rudimentare form of pkg upgrading:
When invoked with 'pkg_add -u ...', and the package to be installed is
found already being installed, the old (installed) package is removed
with pkg_delete, and the new one is installed.

A very crude handling of dependencies is done (by moving the +REQUIRED_BY
file aside before pkg_delete, and back into place after the new pkg is
installed).

This needs a lot more work to TRT, but it's a first start.


To generate a diff of this commit:
cvs rdiff -r1.18 -r1.19 basesrc/usr.sbin/pkg_install/add/main.c
cvs rdiff -r1.56 -r1.57 basesrc/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.23 -r1.24 basesrc/usr.sbin/pkg_install/add/pkg_add.1
cvs rdiff -r1.32 -r1.33 basesrc/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.