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.
This commit is contained in:
parent
ea605099d4
commit
cbd3af2fa3
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue