Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/python-exec/
Date: Thu, 25 Feb 2016 20:29:23
Message-Id: 1456432146.573e40d18478d4f4189a89b9e700239cb4e5be8b.mgorny@gentoo
1 commit: 573e40d18478d4f4189a89b9e700239cb4e5be8b
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 25 20:08:30 2016 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 25 20:29:06 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=573e40d1
7
8 dev-lang/python-exec: Explain configuration upgrade in postinst
9
10 dev-lang/python-exec/python-exec-2.4.2.ebuild | 23 ++++++++++++++++++++++-
11 dev-lang/python-exec/python-exec-9999.ebuild | 23 ++++++++++++++++++++++-
12 2 files changed, 44 insertions(+), 2 deletions(-)
13
14 diff --git a/dev-lang/python-exec/python-exec-2.4.2.ebuild b/dev-lang/python-exec/python-exec-2.4.2.ebuild
15 index 121f31e..93ca528 100644
16 --- a/dev-lang/python-exec/python-exec-2.4.2.ebuild
17 +++ b/dev-lang/python-exec/python-exec-2.4.2.ebuild
18 @@ -103,7 +103,28 @@ pkg_preinst() {
19 done
20
21 if [[ ${old_pythons[@]} ]]; then
22 - einfo "Keeping the following Python preference: ${old_pythons[*]}"
23 + elog "You seem to have just upgraded into the new version of python-exec"
24 + elog "that uses python-exec.conf for configuration. The ebuild has attempted"
25 + elog "to convert your previous configuration to the new format, resulting"
26 + elog "in the following preferences (most preferred version first):"
27 + elog
28 + for py in "${old_pythons[@]}"; do
29 + elog " ${py}"
30 + done
31 + elog
32 + elog "Those interpreters will be preferred when running Python scripts or"
33 + elog "calling wrapped Python executables (python, python2, pydoc...)."
34 + elog "If none of the preferred interpreters are supported, python-exec will"
35 + elog "fall back to the newest supported Python version."
36 + elog
37 + elog "Please note that due to the ambiguous character of the old settings,"
38 + elog "you may want to modify the preference list yourself. In order to do so,"
39 + elog "open the following file in your favorite editor:"
40 + elog
41 + elog " ${EROOT}etc/python-exec/python-exec.conf"
42 + elog
43 + elog "For more information on the new configuration format, please read"
44 + elog "the comment on top of the installed configuration file."
45
46 local IFS=$'\n'
47 echo "${old_pythons[*]}" \
48
49 diff --git a/dev-lang/python-exec/python-exec-9999.ebuild b/dev-lang/python-exec/python-exec-9999.ebuild
50 index b835c89..5744125 100644
51 --- a/dev-lang/python-exec/python-exec-9999.ebuild
52 +++ b/dev-lang/python-exec/python-exec-9999.ebuild
53 @@ -118,7 +118,28 @@ pkg_preinst() {
54 done
55
56 if [[ ${old_pythons[@]} ]]; then
57 - einfo "Keeping the following Python preference: ${old_pythons[*]}"
58 + elog "You seem to have just upgraded into the new version of python-exec"
59 + elog "that uses python-exec.conf for configuration. The ebuild has attempted"
60 + elog "to convert your previous configuration to the new format, resulting"
61 + elog "in the following preferences (most preferred version first):"
62 + elog
63 + for py in "${old_pythons[@]}"; do
64 + elog " ${py}"
65 + done
66 + elog
67 + elog "Those interpreters will be preferred when running Python scripts or"
68 + elog "calling wrapped Python executables (python, python2, pydoc...)."
69 + elog "If none of the preferred interpreters are supported, python-exec will"
70 + elog "fall back to the newest supported Python version."
71 + elog
72 + elog "Please note that due to the ambiguous character of the old settings,"
73 + elog "you may want to modify the preference list yourself. In order to do so,"
74 + elog "open the following file in your favorite editor:"
75 + elog
76 + elog " ${EROOT}etc/python-exec/python-exec.conf"
77 + elog
78 + elog "For more information on the new configuration format, please read"
79 + elog "the comment on top of the installed configuration file."
80
81 local IFS=$'\n'
82 echo "${old_pythons[*]}" \