diff options
author | agc <agc@pkgsrc.org> | 1999-10-22 14:14:22 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-10-22 14:14:22 +0000 |
commit | 7728e6f519b3ebcf22d8d7d24a77a0e72344da12 (patch) | |
tree | dd582723a6f076ebf3400044240da05c310465ad /mk | |
parent | da7e1f7b16b1cd5e3a54f3e84c0cf23f526aa853 (diff) | |
download | pkgsrc-7728e6f519b3ebcf22d8d7d24a77a0e72344da12.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 |