summaryrefslogtreecommitdiff
path: root/share/mk/bsd.port.mk
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>1998-07-29 15:32:55 +0000
committerMarc Espie <espie@cvs.openbsd.org>1998-07-29 15:32:55 +0000
commitb4ee90829c5a0ea5170cdcd8e2c52267b2b74e95 (patch)
tree69ddd2de180742d8722fe79d735c9d4e7924f897 /share/mk/bsd.port.mk
parent8a4544d7b07dbd04fec43fa76036c656a86e1c21 (diff)
Fix version number checking to handle ja-* correctly.
Diffstat (limited to 'share/mk/bsd.port.mk')
-rw-r--r--share/mk/bsd.port.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/share/mk/bsd.port.mk b/share/mk/bsd.port.mk
index f420c3fc547..d10cc49ee5e 100644
--- a/share/mk/bsd.port.mk
+++ b/share/mk/bsd.port.mk
@@ -1,6 +1,6 @@
#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4
-# $OpenBSD: bsd.port.mk,v 1.39 1998/07/28 15:25:24 espie Exp $
+# $OpenBSD: bsd.port.mk,v 1.40 1998/07/29 15:32:54 espie Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -1234,7 +1234,7 @@ _PORT_USE: .USE
.endif
.if make(real-install)
.if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER)
- @if [ -d ${PKG_DBDIR}/${PKGNAME} -o "X$$(ls -d ${PKG_DBDIR}/${PKGNAME:C/-.*//g}-* 2> /dev/null)" != "X" ]; then \
+ @if [ -d ${PKG_DBDIR}/${PKGNAME} -o "X$$(ls -d ${PKG_DBDIR}/${PKGNAME:C/-[0-9].*//g}-* 2> /dev/null)" != "X" ]; then \
${ECHO_MSG} "===> ${PKGNAME} is already installed - perhaps an older version?"; \
${ECHO_MSG} " If so, you may wish to \`\`pkg_delete ${PKGNAME}'' and install"; \
${ECHO_MSG} " this port again by \`\`make reinstall'' to upgrade it properly."; \