aboutsummaryrefslogtreecommitdiffstats
path: root/Mk
diff options
context:
space:
mode:
authorbdrewery <bdrewery@FreeBSD.org>2014-09-19 08:50:37 +0800
committerbdrewery <bdrewery@FreeBSD.org>2014-09-19 08:50:37 +0800
commitc97a94a3681308f0c7028c12fea494e4398baeb7 (patch)
tree644cf5b02dc7c7393899fde25e48b3e113f7cca0 /Mk
parentda18b8fc9497d3a951a64c0110be7b94dc3a7b2b (diff)
downloadfreebsd-ports-gnome-c97a94a3681308f0c7028c12fea494e4398baeb7.tar.gz
freebsd-ports-gnome-c97a94a3681308f0c7028c12fea494e4398baeb7.tar.zst
freebsd-ports-gnome-c97a94a3681308f0c7028c12fea494e4398baeb7.zip
- Fix minimum pkg version check when using pkg from git. Strip out everything
after '-' as it is a hash. It is not strictly newer than the implicit 0. - Reword msg [1] Submitted by: adamw [1] With hat: portmgr
Diffstat (limited to 'Mk')
-rw-r--r--Mk/bsd.port.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/Mk/bsd.port.mk b/Mk/bsd.port.mk
index 89b42bda85c1..526f925229f8 100644
--- a/Mk/bsd.port.mk
+++ b/Mk/bsd.port.mk
@@ -1223,9 +1223,9 @@ WITH_NEW_XORG?= yes
.if !defined(_PKG_VERSION)
_PKG_VERSION!= ${PKG_BIN} -v
.endif
-_PKG_STATUS!= ${PKG_BIN} version -t ${_PKG_VERSION:S/-/\./g} ${MINIMAL_PKG_VERSION}
+_PKG_STATUS!= ${PKG_BIN} version -t ${_PKG_VERSION:C/-.*//g} ${MINIMAL_PKG_VERSION}
.if ${_PKG_STATUS} == "<"
-IGNORE= You need pkg(8) at least version ${MINIMAL_PKG_VERSION} and you have ${_PKG_VERSION} please consider upgrading pkg(8) first
+IGNORE= pkg(8) must be version ${MINIMAL_PKG_VERSION} or greater, but you have ${_PKG_VERSION}. You must upgrade pkg(8) first
.endif
.endif