Fix yum repo on AWS Linux

If I understand the logic here the new(ish) aws repo url would only be
used in these two cases - when repo_rev:

* starts with latest or 2016.11
* starts with 0-9 and the year string is greater than 2016

If I'm reading this correct, the second case is wrong so I've removed
the check for "starts with 0-9".

Fixes #1159.
This commit is contained in:
Charles McLaughlin 2017-11-06 21:25:31 -08:00
parent b59a29b074
commit 87d38135b8

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