From: | "Arfrever Frehtes Taifersar Arahesis (arfrever)" <arfrever@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in app-admin/python-updater/files: python-updater-0.7-fix_import.patch |
Date: | Fri, 29 Jan 2010 17:37:23 |
Message-Id: | E1NaumO-00018m-VM@stork.gentoo.org |
1 | arfrever 10/01/29 17:37:12 |
2 | |
3 | Added: python-updater-0.7-fix_import.patch |
4 | Log: |
5 | Backport fix for bug #288361. |
6 | (Portage version: 15217-svn/cvs/Linux x86_64) |
7 | |
8 | Revision Changes Path |
9 | 1.1 app-admin/python-updater/files/python-updater-0.7-fix_import.patch |
10 | |
11 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/python-updater/files/python-updater-0.7-fix_import.patch?rev=1.1&view=markup |
12 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/app-admin/python-updater/files/python-updater-0.7-fix_import.patch?rev=1.1&content-type=text/plain |
13 | |
14 | Index: python-updater-0.7-fix_import.patch |
15 | =================================================================== |
16 | --- python-updater |
17 | +++ python-updater |
18 | @@ -34,7 +34,6 @@ |
19 | VERBOSE=0 |
20 | PKGS_TO_REMERGE="" |
21 | PKGS_COUNT_REMERGE=0 |
22 | -PORTAGE_PYTHON="/usr/bin/python" |
23 | PYTHON_VERSIONS="3.2 3.1 3.0 2.7 2.6 2.5 2.4 2.3 2.2 2.1" |
24 | |
25 | SUPPORTED_PMS="portage pkgcore paludis" |
26 | @@ -132,26 +131,6 @@ |
27 | return 1 |
28 | } |
29 | |
30 | -# get_portage_python(oldpy,newpy) |
31 | -# Find where portage is, in pythonX.Y or somewhere else? |
32 | -get_portage_python() { |
33 | - if [[ $# -lt 2 ]]; then |
34 | - eerror "get_portage_python(): Missing arguments." |
35 | - exit 1 |
36 | - fi |
37 | - local oldpy="$1" newpy="$2" |
38 | - |
39 | - pybin=/usr/bin/python |
40 | - for py in ${pybin} ${pybin}${oldpy} ${pybin}${newpy}; do |
41 | - if ${py} -c "import portage" > /dev/null 2>&1; then |
42 | - echo -n "${py}" |
43 | - return 0 |
44 | - fi |
45 | - done |
46 | - eerror "Couldn't determine portage python" |
47 | - return 1 |
48 | -} |
49 | - |
50 | # get_portage_portdir() |
51 | # Check if portage knows about PORTDIR and return it |
52 | get_portage_portdir() { |
53 | @@ -294,11 +273,6 @@ |
54 | fi |
55 | fi |
56 | |
57 | -# Get portage python |
58 | -PORTAGE_PYTHON="$(get_portage_python ${OLD_PY_VER} ${NEW_PY_VER})" |
59 | -[[ $? != 0 ]] && exit 1 |
60 | - |
61 | - |
62 | einfo "Starting Python Updater from ${OLD_PY_VER} to ${NEW_PY_VER} :" |
63 | if [[ CHECK_SONAME -ne 0 ]]; then |
64 | if ! type -P scanelf >/dev/null 2>&1; then |