diff options
author | agc <agc@pkgsrc.org> | 1999-10-21 14:49:59 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 1999-10-21 14:49:59 +0000 |
commit | cbd3af2fa3aadfb288a814c649bdfe328e117c29 (patch) | |
tree | b227fd0dba7b2aa38ea284d2174e0ff5372df48c /mk | |
parent | ea605099d414e510c316814fc52fec60b4776cb3 (diff) | |
download | pkgsrc-cbd3af2fa3aadfb288a814c649bdfe328e117c29.tar.gz |
Be more careful when matching packages in show-downlevel target - apply
the fix from The Wiz in pkg PR 8597. This will still produce erroneous
results for the foo-current vs. foo package discrepancy, but that's left
as an exercise for a later day.
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 4413bbf58c9..2b57f541a38 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.359 1999/10/21 14:23:38 agc Exp $ +# $NetBSD: bsd.pkg.mk,v 1.360 1999/10/21 14:49:59 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-*" || ${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 |