summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>1999-10-22 14:14:22 +0000
committeragc <agc>1999-10-22 14:14:22 +0000
commitc4579fbfcb3e1b622143a0ce2a60de81dae79fda (patch)
treedd582723a6f076ebf3400044240da05c310465ad /mk
parent1f35fb310537e5a0548bc12a3cc900b6a440b606 (diff)
downloadpkgsrc-c4579fbfcb3e1b622143a0ce2a60de81dae79fda.tar.gz
As pointed out by Hubert Feyrer, the pattern that pkg_info takes (in the
show-downlevel target) is a shell glob pattern, not a regular expression, so wildcards are '*', not '.*'. Due to the format of package names, the regular expression will match in most cases (a single digit major version number), but that's no excuse.
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/mk/bsd.pkg.mk b/mk/bsd.pkg.mk
index 2b57f541a38..a6cf9a5b1f2 100644
--- a/mk/bsd.pkg.mk
+++ b/mk/bsd.pkg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkg.mk,v 1.360 1999/10/21 14:49:59 agc Exp $
+# $NetBSD: bsd.pkg.mk,v 1.361 1999/10/22 14:14:22 agc Exp $
#
# This file is in the public domain.
#
@@ -997,7 +997,7 @@ show-downlevel:
.else
${_PKG_SILENT}${_PKG_DEBUG} \
base=`${ECHO} ${PKGNAME} | ${SED} -e 's|\(.*\)-.*|\1|'`; \
- found=`${PKG_INFO} -e "$$base-[0-9].*" || ${TRUE}`; \
+ found=`${PKG_INFO} -e "$$base-[0-9]*" || ${TRUE}`; \
if [ "X$$found" != "X" -a "X$$found" != "X${PKGNAME}" ]; then \
${ECHO} "$$base package: $$found installed, pkgsrc version ${PKGNAME}"; \
fi