Merge "Don't install python2 for Debian"

This commit is contained in:
Zuul 2019-12-05 21:40:08 +00:00 committed by Gerrit Code Review
commit dc5983cd2d

View File

@ -28,7 +28,10 @@
register: result
raw: |
if which apt-get >/dev/null && ! which python >/dev/null ; then
apt-get -y install python
if ! which python3 >/dev/null ; then
apt-get -y install python3
fi
update-alternatives --install /usr/bin/python python /usr/bin/python3 10
exit 2
else
exit 0