Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pkgviews]: src/usr.sbin/pkg_install/delete Don't hardcode the name of th...



details:   https://anonhg.NetBSD.org/src/rev/43c409c5d11f
branches:  pkgviews
changeset: 534251:43c409c5d11f
user:      jlam <jlam%NetBSD.org@localhost>
date:      Sat Aug 16 22:11:22 2003 +0000

description:
Don't hardcode the name of the PKG_DBDIR variable, which is kept in
the CPP macro definition "PKG_DBDIR".

diffstat:

 usr.sbin/pkg_install/delete/perform.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 3c091a1cf26f -r 43c409c5d11f usr.sbin/pkg_install/delete/perform.c
--- a/usr.sbin/pkg_install/delete/perform.c     Fri Aug 08 10:19:01 2003 +0000
+++ b/usr.sbin/pkg_install/delete/perform.c     Sat Aug 16 22:11:22 2003 +0000
@@ -1,11 +1,11 @@
-/*     $NetBSD: perform.c,v 1.36.2.6 2003/07/30 11:04:33 jlam Exp $    */
+/*     $NetBSD: perform.c,v 1.36.2.7 2003/08/16 22:11:22 jlam Exp $    */
 
 #include <sys/cdefs.h>
 #ifndef lint
 #if 0
 static const char *rcsid = "from FreeBSD Id: perform.c,v 1.15 1997/10/13 15:03:52 jkh Exp";
 #else
-__RCSID("$NetBSD: perform.c,v 1.36.2.6 2003/07/30 11:04:33 jlam Exp $");
+__RCSID("$NetBSD: perform.c,v 1.36.2.7 2003/08/16 22:11:22 jlam Exp $");
 #endif
 #endif
 
@@ -685,7 +685,7 @@
                        if (Verbose) {
                                printf("Deleting package %s instance from `%s' view\n", pkg, view);
                        }
-                       if (vsystem("env PKG_DBDIR=%s %s %s", view, ProgramPath, pkg) != 0) {
+                       if (vsystem("env %s=%s %s %s", PKG_DBDIR, view, ProgramPath, pkg) != 0) {
                                warnx("unable to delete package %s from view %s", pkg, view);
                                (void) fclose(fp);
                                return 1;



Home | Main Index | Thread Index | Old Index