mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
- 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
This commit is contained in:
parent
b021067d57
commit
2e0063b2c3
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=368535
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user