diff options
author | agc <agc@pkgsrc.org> | 2001-01-25 21:20:05 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2001-01-25 21:20:05 +0000 |
commit | 71d2649a6352c27a4c93ef4d691b602ef470b2f8 (patch) | |
tree | a2443876d0bfe59e4aea1cd5fee5aa404c0e22b9 | |
parent | ccee4c25aa117f1bcb5794bdfb05ba3b63dcb77e (diff) | |
download | pkgsrc-71d2649a6352c27a4c93ef4d691b602ef470b2f8.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 |