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: 08/20/2003 01:52:41
Module Name: src
Committed By: jlam
Date: Wed Aug 20 01:52:41 UTC 2003
Modified Files:
src/usr.sbin/pkg_install/add [pkgviews]: perform.c
src/usr.sbin/pkg_install/delete [pkgviews]: main.c perform.c
src/usr.sbin/pkg_install/info [pkgviews]: main.c perform.c
Log Message:
Consistently use _pkgdb_getPKGDB_DIR() to return the location of the
package registry instead of using the following idiom over and over and
over again:
char *dbdir, *tmp;
dbdir = (tmp = getenv(PKG_DBDIR)) ? tmp : DEF_LOG_DIR;
This is faster anyway -- _pkgdb_getPKGDB_DIR() caches the value instead of
doing the lookup every time.
To generate a diff of this commit:
cvs rdiff -r1.70.2.5 -r1.70.2.6 src/usr.sbin/pkg_install/add/perform.c
cvs rdiff -r1.20.2.1 -r1.20.2.2 src/usr.sbin/pkg_install/delete/main.c
cvs rdiff -r1.36.2.8 -r1.36.2.9 src/usr.sbin/pkg_install/delete/perform.c
cvs rdiff -r1.30.2.2 -r1.30.2.3 src/usr.sbin/pkg_install/info/main.c
cvs rdiff -r1.40.2.3 -r1.40.2.4 src/usr.sbin/pkg_install/info/perform.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.