diff options
author | agc <agc> | 1999-10-22 14:14:22 +0000 |
---|---|---|
committer | agc <agc> | 1999-10-22 14:14:22 +0000 |
commit | c4579fbfcb3e1b622143a0ce2a60de81dae79fda (patch) | |
tree | dd582723a6f076ebf3400044240da05c310465ad /mk | |
parent | 1f35fb310537e5a0548bc12a3cc900b6a440b606 (diff) | |
download | pkgsrc-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.mk | 4 |
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 |