summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authoragc <agc>2001-01-25 21:20:05 +0000
committeragc <agc>2001-01-25 21:20:05 +0000
commit09a9561a2f4b58fd95988d6c3772daad27d92721 (patch)
treea2443876d0bfe59e4aea1cd5fee5aa404c0e22b9 /mk
parent37a128b3effd7e0a8740c2a8914833cbfe83a31a (diff)
downloadpkgsrc-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
Diffstat (limited to 'mk')
-rw-r--r--mk/bsd.pkg.mk4
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