diff options
author | bdrewery <bdrewery@FreeBSD.org> | 2014-09-19 08:50:37 +0800 |
---|---|---|
committer | bdrewery <bdrewery@FreeBSD.org> | 2014-09-19 08:50:37 +0800 |
commit | c97a94a3681308f0c7028c12fea494e4398baeb7 (patch) | |
tree | 644cf5b02dc7c7393899fde25e48b3e113f7cca0 /Mk | |
parent | da18b8fc9497d3a951a64c0110be7b94dc3a7b2b (diff) | |
download | freebsd-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.mk | 4 |
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 |