Gentoo Archives: gentoo-dev

From: Sebastian Pipping <sping@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Python 2.7 status check?
Date: Tue, 30 Nov 2010 17:23:36
Message-Id: 4CF532F7.4000005@gentoo.org
In Reply to: Re: [gentoo-dev] Python 2.7 status check? by Arfrever Frehtes Taifersar Arahesis
1 On 11/29/10 16:47, Arfrever Frehtes Taifersar Arahesis wrote:
2 > It wasn't any mistake. Please actually read that code:
3 >
4 > eselect_python_update() {
5 > if [[ -z "$(eselect python show --python${PV%%.*})" ]]; then
6 > eselect python update --python${PV%%.*}
7 > fi
8 > }
9 >
10 > "${PV%%.*}" == "2"
11 > 'eselect python update --python2' would be called only if output of
12 > 'eselect python show --python2' was empty, which would occur when
13 > there was no active version of Python 2 set (no /usr/bin/python2
14 > symlink).
15
16 Thanks for that code. I apologize.
17
18
19
20 Sebastian