pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/mk Fix cases where we were calling "${PKG_BEST_EXISTS}...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4dbde872a2d3
branches: trunk
changeset: 461290:4dbde872a2d3
user: jlam <jlam%pkgsrc.org@localhost>
date: Sat Sep 13 18:26:15 2003 +0000
description:
Fix cases where we were calling "${PKG_BEST_EXISTS} <pkgbase>". <pkgbase>
isn't actually a pkgpattern; what we really want is <pkgwildcard>. This
should fix breakage with the "update" and "replace" targets introduced in
revisions 1.1275 and 1.1278.
diffstat:
mk/bsd.pkg.mk | 15 ++++++++-------
1 files changed, 8 insertions(+), 7 deletions(-)
diffs (45 lines):
diff -r 8113b6931b77 -r 4dbde872a2d3 mk/bsd.pkg.mk
--- a/mk/bsd.pkg.mk Sat Sep 13 17:57:21 2003 +0000
+++ b/mk/bsd.pkg.mk Sat Sep 13 18:26:15 2003 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.1280 2003/09/13 14:40:40 jlam Exp $
+# $NetBSD: bsd.pkg.mk,v 1.1281 2003/09/13 18:26:15 jlam Exp $
#
# This file is in the public domain.
#
@@ -1806,7 +1806,7 @@
${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA}
. else
${_PKG_SILENT}${_PKG_DEBUG} \
- found="`${PKG_BEST_EXISTS} \"${PKGBASE}\" || ${TRUE}`"; \
+ found="`${PKG_BEST_EXISTS} \"${PKGWILDCARD}\" || ${TRUE}`"; \
if [ "X$$found" != "X" -a "X$$found" != "X${PKGNAME}" ]; then \
${ECHO} "${PKGBASE} package: $$found installed, pkgsrc version ${PKGNAME}"; \
if [ "X$$STOP_DOWNLEVEL_AFTER_FIRST" != "X" ]; then \
@@ -1835,12 +1835,13 @@
${_PKG_SILENT}${_PKG_DEBUG} \
for i in `${MAKE} show-all-depends-dirs`; do \
cd ${_PKGSRCDIR}/$$i; \
- want=`make show-vars VARNAMES=PKGNAME`; \
- have=`${PKG_BEST_EXISTS} "$${want%-*}" || true`; \
+ want=`make show-var VARNAME=PKGNAME`; \
+ wild=`make show-var VARNAME=PKGWILDCARD`; \
+ have=`${PKG_BEST_EXISTS} "$$wild" || ${TRUE}`; \
if [ -z "$$have" ]; then \
- echo "$$i => (none) => needs install of $$want"; \
+ ${ECHO} "$$i => (none) => needs install of $$want"; \
elif [ "$$have" != "$$want" ]; then \
- echo "$$i => $$have => needs update to $$want"; \
+ ${ECHO} "$$i => $$have => needs update to $$want"; \
fi; \
done
. endif
@@ -3441,7 +3442,7 @@
exit 1; \
fi
${_PKG_SILENT}${_PKG_DEBUG} \
- oldpkgname=`${PKG_BEST_EXISTS} "${PKGBASE}"`; \
+ oldpkgname=`${PKG_BEST_EXISTS} "${PKGWILDCARD}"`; \
newpkgname=${PKGNAME}; \
${ECHO} "$$oldpkgname" > ${WRKDIR}/.replace; \
replace_action="${MAKE} install"; \
Home |
Main Index |
Thread Index |
Old Index