summaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-14 00:28:36 +0200
committerArfrever Frehtes Taifersar Arahesis <Arfrever@Gentoo.Org>2010-08-14 00:28:36 +0200
commit1aca7a6adf643afde027778f1acbde7226dcea72 (patch)
treefddc8859a1be3657d6e4e71221c8a2e5ec12d628 /bin/ebuild-helpers
parent6ec700e140ac8679907032af18df831677c421c9 (diff)
downloadportage-1aca7a6adf643afde027778f1acbde7226dcea72.tar.gz
portage-1aca7a6adf643afde027778f1acbde7226dcea72.tar.bz2
portage-1aca7a6adf643afde027778f1acbde7226dcea72.zip
Ensure that all Python processes use the same version of Python.
Diffstat (limited to 'bin/ebuild-helpers')
-rwxr-xr-xbin/ebuild-helpers/dohtml8
-rwxr-xr-xbin/ebuild-helpers/portageq8
2 files changed, 6 insertions, 10 deletions
diff --git a/bin/ebuild-helpers/dohtml b/bin/ebuild-helpers/dohtml
index e1ab7d970..6de730c6d 100755
--- a/bin/ebuild-helpers/dohtml
+++ b/bin/ebuild-helpers/dohtml
@@ -1,15 +1,13 @@
#!/bin/bash
-# Copyright 2009 Gentoo Foundation
+# Copyright 2009-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
PORTAGE_BIN_PATH=${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}
PORTAGE_PYM_PATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
-# Set EPYTHON variable as empty so that dohtml.py doesn't try
-# to use potentially unsupported version of Python.
-EPYTHON= PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \
- "$PORTAGE_BIN_PATH/dohtml.py" "$@"
+PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \
+ "$PORTAGE_PYTHON" "$PORTAGE_BIN_PATH/dohtml.py" "$@"
ret=$?
[[ $ret -ne 0 ]] && helpers_die "$0 failed"
diff --git a/bin/ebuild-helpers/portageq b/bin/ebuild-helpers/portageq
index 3a06fdd68..8dee54c32 100755
--- a/bin/ebuild-helpers/portageq
+++ b/bin/ebuild-helpers/portageq
@@ -1,10 +1,8 @@
#!/bin/bash
-# Copyright 2009 Gentoo Foundation
+# Copyright 2009-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
PORTAGE_BIN_PATH=${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}
PORTAGE_PYM_PATH=${PORTAGE_PYM_PATH:-/usr/lib/portage/pym}
-# Set EPYTHON variable as empty so that portageq doesn't try
-# to use potentially unsupported version of Python.
-EPYTHON= PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \
- exec "$PORTAGE_BIN_PATH/portageq" "$@"
+PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \
+ exec "$PORTAGE_PYTHON" "$PORTAGE_BIN_PATH/portageq" "$@"