1 |
jmbsvicetto 11/01/01 18:24:05 |
2 |
|
3 |
Modified: ChangeLog python-2.6.6-r1.ebuild |
4 |
Log: |
5 |
Non-maintainer commit. |
6 |
Reverting commit that broke stage generation for python-2.6.6-r1 as it wasn't reverted before - bug 347867. |
7 |
This commit was accepted by Arfrever |
8 |
|
9 |
(Portage version: 2.2.0_alpha11/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.514 dev-lang/python/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/python/ChangeLog?rev=1.514&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/python/ChangeLog?rev=1.514&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/python/ChangeLog?r1=1.513&r2=1.514 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v |
21 |
retrieving revision 1.513 |
22 |
retrieving revision 1.514 |
23 |
diff -u -r1.513 -r1.514 |
24 |
--- ChangeLog 29 Dec 2010 16:21:36 -0000 1.513 |
25 |
+++ ChangeLog 1 Jan 2011 18:24:05 -0000 1.514 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for dev-lang/python |
28 |
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.513 2010/12/29 16:21:36 hwoarang Exp $ |
30 |
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/ChangeLog,v 1.514 2011/01/01 18:24:05 jmbsvicetto Exp $ |
32 |
+ |
33 |
+ 01 Jan 2011; Jorge Manuel B. S. Vicetto <jmbsvicetto@g.o> |
34 |
+ python-2.6.6-r1.ebuild: |
35 |
+ Non-maintainer commit. |
36 |
+ Reverting commit that broke stage generation for python-2.6.6-r1 as it wasn't |
37 |
+ reverted before - bug 347867. |
38 |
+ This commit was accepted by Arfrever. |
39 |
|
40 |
29 Dec 2010; Markos Chandras <hwoarang@g.o> python-2.6.6-r1.ebuild: |
41 |
Stable on amd64 wrt bug #342927 |
42 |
|
43 |
|
44 |
|
45 |
1.12 dev-lang/python/python-2.6.6-r1.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/python/python-2.6.6-r1.ebuild?rev=1.12&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/python/python-2.6.6-r1.ebuild?rev=1.12&content-type=text/plain |
49 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-lang/python/python-2.6.6-r1.ebuild?r1=1.11&r2=1.12 |
50 |
|
51 |
Index: python-2.6.6-r1.ebuild |
52 |
=================================================================== |
53 |
RCS file: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.6-r1.ebuild,v |
54 |
retrieving revision 1.11 |
55 |
retrieving revision 1.12 |
56 |
diff -u -r1.11 -r1.12 |
57 |
--- python-2.6.6-r1.ebuild 29 Dec 2010 16:21:36 -0000 1.11 |
58 |
+++ python-2.6.6-r1.ebuild 1 Jan 2011 18:24:05 -0000 1.12 |
59 |
@@ -1,6 +1,6 @@ |
60 |
-# Copyright 1999-2010 Gentoo Foundation |
61 |
+# Copyright 1999-2011 Gentoo Foundation |
62 |
# Distributed under the terms of the GNU General Public License v2 |
63 |
-# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.6-r1.ebuild,v 1.11 2010/12/29 16:21:36 hwoarang Exp $ |
64 |
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/python/python-2.6.6-r1.ebuild,v 1.12 2011/01/01 18:24:05 jmbsvicetto Exp $ |
65 |
|
66 |
EAPI="2" |
67 |
|
68 |
@@ -272,48 +272,24 @@ |
69 |
rmdir "${ED}$(python_get_libdir)/lib-old" |
70 |
} |
71 |
|
72 |
-save_active_python_version() { |
73 |
- active_python_2=$(eselect python show --python2) |
74 |
- active_python_3=$(eselect python show --python3) |
75 |
- active_python_main=$(eselect python show) |
76 |
-} |
77 |
- |
78 |
-restore_active_python_version() { |
79 |
- if [[ -n "${active_python_2}" && |
80 |
- "${active_python_2}" != $(eselect python show --python2) ]] ; then |
81 |
- einfo "Restoring active Python 2.x interpreter: ${active_python_2}" |
82 |
- eselect python set --python2 "${active_python_2}" |
83 |
- fi |
84 |
- if [[ -n "${active_python_3}" && |
85 |
- "${active_python_3}" != $(eselect python show --python3) ]] ; then |
86 |
- einfo "Restoring active Python 3.x interpreter: ${active_python_3}" |
87 |
- eselect python set --python3 "${active_python_3}" |
88 |
- fi |
89 |
- |
90 |
- if [[ -n "${active_python_main}" && |
91 |
- "${active_python_main}" != $(eselect python show) ]] ; then |
92 |
- einfo "Restoring main active Python interpreter: ${active_python_main}" |
93 |
- eselect python set "${active_python_main}" |
94 |
+pkg_preinst() { |
95 |
+ if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version "${CATEGORY}/${PN}:2.6" && ! has_version "${CATEGORY}/${PN}:2.7"; then |
96 |
+ python_updater_warning="1" |
97 |
fi |
98 |
} |
99 |
|
100 |
-ensure_python_symlink() { |
101 |
- if [[ -z "$(eselect python show --python${PV%%.*})" ]]; then |
102 |
- eselect python update --python${PV%%.*} |
103 |
- fi |
104 |
-} |
105 |
+eselect_python_update() { |
106 |
+ local eselect_python_options |
107 |
+ [[ "$(eselect python show)" == "python2."* ]] && eselect_python_options="--python2" |
108 |
|
109 |
-pkg_preinst() { |
110 |
- save_active_python_version |
111 |
+ # Create python2 symlink. |
112 |
+ eselect python update --python2 > /dev/null |
113 |
|
114 |
- if has_version "<${CATEGORY}/${PN}-${SLOT}" && ! has_version "${CATEGORY}/${PN}:2.6" && ! has_version "${CATEGORY}/${PN}:2.7"; then |
115 |
- python_updater_warning="1" |
116 |
- fi |
117 |
+ eselect python update ${eselect_python_options} |
118 |
} |
119 |
|
120 |
pkg_postinst() { |
121 |
- restore_active_python_version |
122 |
- ensure_python_symlink |
123 |
+ eselect_python_update |
124 |
|
125 |
python_mod_optimize -f -x "/(site-packages|test|tests)/" $(python_get_libdir) |
126 |
|
127 |
@@ -331,7 +307,7 @@ |
128 |
} |
129 |
|
130 |
pkg_postrm() { |
131 |
- ensure_python_symlink |
132 |
+ eselect_python_update |
133 |
|
134 |
python_mod_cleanup $(python_get_libdir) |
135 |
-} |
136 |
+} |
137 |
\ No newline at end of file |