You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
calculate-overlay/profiles/patches/dev-lang/python-2.7-env_set.sh

18 lines
337 B

if [[ ${EBUILD_PHASE} == postinst ]]
then
if [[ -e /etc/env.d/python/config ]]
then
if grep -q python2\.6 /etc/env.d/python/config ||
grep -q python2\.5 /etc/env.d/python/config
then
if [[ -x /usr/bin/eselect ]]
then
eselect python set python2.7
else
echo python2.7 >/etc/env.d/python/config
fi
fi
fi
fi