commit:     b346cff85990465d53209de3d7b938b601fb2fe0
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 30 20:24:58 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Wed Nov 30 20:26:05 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b346cff8

dev-lang/python: restore eselect python set --python2 call

This broke Funtoo stage building since it relies on the python2 symlink.

Package-Manager: portage-2.3.2_p11

 dev-lang/python/python-2.7.12.ebuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dev-lang/python/python-2.7.12.ebuild 
b/dev-lang/python/python-2.7.12.ebuild
index fd47f81..09e76ba 100644
--- a/dev-lang/python/python-2.7.12.ebuild
+++ b/dev-lang/python/python-2.7.12.ebuild
@@ -346,6 +346,10 @@ eselect_python_update() {
        if [[ -z "$(eselect python show)" || ! -f "${EROOT}usr/bin/$(eselect 
python show)" ]]; then
                eselect python update
        fi
+
+       if [[ -z "$(eselect python show --python${PV%%.*})" || ! -f 
"${EROOT}usr/bin/$(eselect python show --python${PV%%.*})" ]]; then
+               eselect python update --python${PV%%.*}
+       fi
 }
 
 pkg_postinst() {

Reply via email to