summaryrefslogtreecommitdiff
path: root/share/mk/bsd.port.mk
diff options
context:
space:
mode:
authorTodd T. Fries <todd@cvs.openbsd.org>1998-07-12 04:34:40 +0000
committerTodd T. Fries <todd@cvs.openbsd.org>1998-07-12 04:34:40 +0000
commit2609ab695c6066d1c2c7b58b9664a62179d36a75 (patch)
tree18afe3b24217a5b74da98e038f1deca64b744fc8 /share/mk/bsd.port.mk
parentb0685dfcb36e21cb600c8e4c38ea4cc40deffa0d (diff)
allow detection of older package versions with a new package from the ports tree
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 e2ea821ca46..81cc9dad32e 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.35 1998/07/09 03:12:18 marc Exp $
+# $OpenBSD: bsd.port.mk,v 1.36 1998/07/12 04:34:39 todd Exp $
# $NetBSD: $
#
# bsd.port.mk - 940820 Jordan K. Hubbard.
@@ -1228,7 +1228,7 @@ _PORT_USE: .USE
.endif
.if make(real-install)
.if !defined(NO_PKG_REGISTER) && !defined(FORCE_PKG_REGISTER)
- @if [ -d ${PKG_DBDIR}/${PKGNAME} ]; then \
+ @if [ -d ${PKG_DBDIR}/${PKGNAME} -o "X$$(ls -d ${PKG_DBDIR}/${PKGNAME:C/-.*//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."; \