Commit 779151db authored by Teodor Mircea Ionita's avatar Teodor Mircea Ionita Committed by Sergei Golubchik

autobake-deb: fixes for AWS SDK build eligibility checks.

Add check for git command and test for internet connectivity
using bash /dev/tcp interface, instead of wget and curl which might
not be available, thus reducing dependencies for this script.
parent 2999492c
...@@ -102,7 +102,7 @@ fi ...@@ -102,7 +102,7 @@ fi
# AWS SDK also requires the build machine to have network access and git, so # AWS SDK also requires the build machine to have network access and git, so
# it cannot be part of the base version included in Linux distros, but a pure # it cannot be part of the base version included in Linux distros, but a pure
# custom built plugin. # custom built plugin.
if [[ $GCCVERSION -gt 40800 ]] && [[ ! $TRAVIS ]] && wget --timeout 15 --tries 1 --quiet --output-document /dev/null https://github.com/ if [[ $GCCVERSION -gt 40800 ]] && [[ ! $TRAVIS ]] && [[ -x "$(command -v git)" ]] && $(timeout 3s bash -c 'cat </dev/tcp/github.com/22')
then then
cat <<EOF >> debian/control cat <<EOF >> debian/control
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment