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 |