File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,17 +18,23 @@ for version in "${versions[@]}"; do
1818 fullVersion=" $( curl -fsSL ' https://www.python.org/downloads/' | awk -F ' Python |</a>' ' /<span class="release-number"><a[^>]+>Python ' " $version " ' ./ { print $2 }' | grep -v ' rc' | sort -V | tail -1) "
1919 # TODO figure out a better way to handle RCs than just filtering them out
2020 if [ -z " $fullVersion " ]; then
21- echo >&2 " warning: cannot find $version "
22- continue
21+ {
22+ echo
23+ echo
24+ echo " warning: cannot find $version (alpha/beta/rc?)"
25+ echo
26+ echo
27+ } >&2
28+ else
29+ (
30+ set -x
31+ sed -ri '
32+ s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /;
33+ s/^(ENV PYTHON_PIP_VERSION) .*/\1 ' " $pipVersion " ' /;
34+ ' " $version " /{,* /}Dockerfile
35+ sed -ri ' s/^(FROM python):.*/\1:' " $version " ' /' " $version /onbuild/Dockerfile"
36+ )
2337 fi
24- (
25- set -x
26- sed -ri '
27- s/^(ENV PYTHON_VERSION) .*/\1 ' " $fullVersion " ' /;
28- s/^(ENV PYTHON_PIP_VERSION) .*/\1 ' " $pipVersion " ' /;
29- ' " $version " /{,* /}Dockerfile
30- sed -ri ' s/^(FROM python):.*/\1:' " $version " ' /' " $version /onbuild/Dockerfile"
31- )
3238 for variant in wheezy alpine slim; do
3339 [ -d " $version /$variant " ] || continue
3440 travisEnv=' \n - VERSION=' " $version VARIANT=$variant$travisEnv "
You can’t perform that action at this time.
0 commit comments