diff options
author | agc <agc> | 2001-01-25 21:20:05 +0000 |
---|---|---|
committer | agc <agc> | 2001-01-25 21:20:05 +0000 |
commit | 09a9561a2f4b58fd95988d6c3772daad27d92721 (patch) | |
tree | a2443876d0bfe59e4aea1cd5fee5aa404c0e22b9 | |
parent | 37a128b3effd7e0a8740c2a8914833cbfe83a31a (diff) | |
download | pkgsrc-09a9561a2f4b58fd95988d6c3772daad27d92721.tar.gz |
Don't use a Dewey decimal relational operator when matching package names
in the "show-downlevel" target, since a number of package names do not
correspond to Dewey decimal version numbers (e.g. 2.4.1p1)
Instead, use pkg_info(1) to retrieve the installed package name, and
compare that against ${PKGNAME}.
Fixes PR 12041, from Bernd Ernesti
-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 3a11e85d6a9..98e8783bafe 100644 --- a/mk/bsd.pkg.mk +++ b/mk/bsd.pkg.mk @@ -1,4 +1,4 @@ -# $NetBSD: bsd.pkg.mk,v 1.649 2001/01/25 10:43:21 wiz Exp $ +# $NetBSD: bsd.pkg.mk,v 1.650 2001/01/25 21:20:05 agc Exp $ # # This file is in the public domain. # @@ -1349,7 +1349,7 @@ show-downlevel: ${_PKG_SILENT}${_PKG_DEBUG}${DO_NADA} .else ${_PKG_SILENT}${_PKG_DEBUG} \ - found="`${PKG_INFO} -e \"${PKGBASE}<${PKGVERSION}\" || ${TRUE}`";\ + found="`${PKG_INFO} -e \"${PKGBASE}\" || ${TRUE}`"; \ if [ "X$$found" != "X" -a "X$$found" != "X${PKGNAME}" ]; then \ ${ECHO} "${PKGBASE} package: $$found installed, pkgsrc version ${PKGNAME}"; \ fi |