pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/pkgtools/pkg_install Explicitly call pkg_admin(1) usin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a8ff74a8e89a
branches:  trunk
changeset: 460533:a8ff74a8e89a
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Sun Aug 31 11:11:20 2003 +0000

description:
Explicitly call pkg_admin(1) using "PKG_DBDIR=... pkg_admin" so that we
don't use any options/flags not supported by pkg_admin that may be a part
of ${PKG_ADMIN}.

diffstat:

 pkgtools/pkg_install/Makefile |  5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diffs (19 lines):

diff -r d86a5588c17c -r a8ff74a8e89a pkgtools/pkg_install/Makefile
--- a/pkgtools/pkg_install/Makefile     Sun Aug 31 11:06:02 2003 +0000
+++ b/pkgtools/pkg_install/Makefile     Sun Aug 31 11:11:20 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.75 2003/08/31 11:06:02 jlam Exp $
+# $NetBSD: Makefile,v 1.76 2003/08/31 11:11:20 jlam Exp $
 
 # Notes to package maintainers:
 #
@@ -47,7 +47,8 @@
                if [ ! -d ${PKG_DBDIR} ]; then                          \
                        ${INSTALL_DATA_DIR} ${PKG_DBDIR};               \
                fi;                                                     \
-               ${PKG_ADMIN} rebuild;                                   \
+               ${SETENV} PKG_DBDIR=${PKG_DBDIR}                        \
+                       ${PKG_ADMIN_CMD} rebuild;                       \
        fi
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index