summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-11 23:58:17 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-11 23:58:17 +0000
commitb9a1749b6dcffadc3d2d9c0c628d857671c336bb (patch)
tree4a150e6939e8f3e702e4fe946b9a1b007b7ff155 /bin
parentUse a shell script for dohtml instead of a function, for xargs compatibility. (diff)
downloadportage-multirepo-b9a1749b6dcffadc3d2d9c0c628d857671c336bb.tar.gz
portage-multirepo-b9a1749b6dcffadc3d2d9c0c628d857671c336bb.tar.bz2
portage-multirepo-b9a1749b6dcffadc3d2d9c0c628d857671c336bb.zip
Use a shell script wrapper for EPYTHON handling. (trunk r14585)
svn path=/main/branches/2.1.7/; revision=14586
Diffstat (limited to 'bin')
-rwxr-xr-x[l---------]bin/ebuild-helpers/portageq12
1 files changed, 11 insertions, 1 deletions
diff --git a/bin/ebuild-helpers/portageq b/bin/ebuild-helpers/portageq
index 4d1273c4..f5a60200 120000..100755
--- a/bin/ebuild-helpers/portageq
+++ b/bin/ebuild-helpers/portageq
@@ -1 +1,11 @@
-../portageq \ No newline at end of file
+#!/bin/bash
+# Copyright 2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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 doesn't try
+# to use potentially unsupported version of Python.
+EPYTHON= PYTHONPATH=$PORTAGE_PYM_PATH${PYTHONPATH:+:}$PYTHONPATH \
+ exec "$PORTAGE_BIN_PATH/portageq" "$@"