Gentoo Archives: gentoo-dev

From: Arfrever Frehtes Taifersar Arahesis <arfrever@g.o>
To: Gentoo Development <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] Python 2.7 status check?
Date: Mon, 29 Nov 2010 15:48:16
Message-Id: AANLkTikqN_vpS7EJOVMfYvP3QqEtiNuyA9NttB64RB0p@mail.gmail.com
In Reply to: Re: [gentoo-dev] Python 2.7 status check? by Sebastian Pipping
1 2010-11-29 12:43 Sebastian Pipping <sping@g.o> napisał(a):
2 > On 11/29/10 02:35, Arfrever Frehtes Taifersar Arahesis wrote:
3 >> Sebastian Pipping recently removed automatic upgrade of active version of Python, so
4 >> python-2.7.1.ebuild does not upgrade active version of Python.
5 >
6 > The ebuilds you just added for 2.7.1 and 3.1.3 do contain
7 > eselect_python_update() and calls to it.
8 >
9 > I suppose that happened by mistake and removed eselect_python_update()
10 > on these ebuilds, too.  They are in CVS now, mirrors take extra time.
11
12 It wasn't any mistake. Please actually read that code:
13
14 eselect_python_update() {
15 if [[ -z "$(eselect python show --python${PV%%.*})" ]]; then
16 eselect python update --python${PV%%.*}
17 fi
18 }
19
20 "${PV%%.*}" == "2"
21 'eselect python update --python2' would be called only if output of
22 'eselect python show --python2' was empty, which would occur when
23 there was no active version of Python 2 set (no /usr/bin/python2
24 symlink).
25
26 --
27 Arfrever Frehtes Taifersar Arahesis

Replies

Subject Author
Re: [gentoo-dev] Python 2.7 status check? Alex Alexander <wired@g.o>
Re: [gentoo-dev] Python 2.7 status check? Sebastian Pipping <sping@g.o>
Re: [gentoo-dev] Python 2.7 status check? Sebastian Pipping <sping@g.o>