Merge pull request #1164 from cmclaughlin/aws

Fix yum repo on AWS Linux
This commit is contained in:
Nicole Thomas 2017-11-08 11:27:27 -07:00 committed by GitHub
commit 32a7946d6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4423,7 +4423,7 @@ install_amazon_linux_ami_deps() {
repo_rev="$(echo "${STABLE_REV}" | sed 's|.*\/||g')"
if echo "$repo_rev" | egrep -q '^(latest|2016\.11)$' || \
( echo "$repo_rev" | egrep -q '^[0-9]+$' && [ "$(echo "$repo_rev" | cut -c1-4)" -gt 2016 ] ); then
[ "$(echo "$repo_rev" | cut -c1-4)" -gt 2016 ]; then
_USEAWS=$BS_TRUE
pkg_append="python27"
fi