mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -05:00
build: Add build dependency check for 'gpg'
This commit is contained in:
parent
198a92c3c4
commit
ddc99e3112
@ -21,6 +21,7 @@ _init() {
|
|||||||
|
|
||||||
## Minimum required versions for build dependencies
|
## Minimum required versions for build dependencies
|
||||||
GIT_VERSION="1.0"
|
GIT_VERSION="1.0"
|
||||||
|
GPG_VERSION="1.3"
|
||||||
GO_VERSION="1.5.1"
|
GO_VERSION="1.5.1"
|
||||||
OSX_VERSION="10.8"
|
OSX_VERSION="10.8"
|
||||||
UNAME=$(uname -sm)
|
UNAME=$(uname -sm)
|
||||||
@ -180,6 +181,11 @@ check_deps() {
|
|||||||
if [ $? -ge 2 ]; then
|
if [ $? -ge 2 ]; then
|
||||||
MISSING="${MISSING} git"
|
MISSING="${MISSING} git"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
check_version "$(env gpg --version 2>/dev/null | sed -e 's/^.* \([0-9.\].*\).*$/\1/' -e 's/^\([0-9.\]*\).*/\1/g' | head -1)" "${GPG_VERSION}"
|
||||||
|
if [ $? -ge 2 ]; then
|
||||||
|
MISSING="${MISSING} gpg"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
main() {
|
main() {
|
||||||
|
Loading…
Reference in New Issue
Block a user