Install Python 3.6 only when building Salt 2019 (stable+git).

This commit is contained in:
Ivo Jánský 2020-09-28 18:36:44 +02:00
parent 898f3948aa
commit 771b813928
No known key found for this signature in database
GPG key ID: 4ADCFB992CA57189

View file

@ -7056,7 +7056,7 @@ __gentoo_pre_dep() {
fi
# Enable python 3.6 if installing pre Neon Salt release
if echo "${STABLE_REV}" | grep -q "2019" ; then
if echo "${STABLE_REV}" | grep -q "2019" || [ "${ITYPE}" = "git" ] && [ "${_POST_NEON_INSTALL}" -eq $BS_FALSE ]; then
if ! emerge --info | sed 's/.*\(PYTHON_TARGETS="[^"]*"\).*/\1/' | grep -q 'python3_6' ; then
echo "PYTHON_TARGETS=\"\${PYTHON_TARGETS} python3_6\"" >> /etc/portage/make.conf
fi