summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-08-30 14:20:18 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever@gentoo.org>2011-08-30 14:20:18 +0000
commit6b49b17217ac8058910733c988078a455c3ecec5 (patch)
tree9b3cc76b1963556f116eda4247cd5de3467cd3e3
parentSupport EAPI >=4. (diff)
downloadpython-updater-6b49b17217ac8058910733c988078a455c3ecec5.tar.gz
python-updater-6b49b17217ac8058910733c988078a455c3ecec5.tar.bz2
python-updater-6b49b17217ac8058910733c988078a455c3ecec5.zip
Improve PATH.
-rwxr-xr-xpython-updater4
1 files changed, 4 insertions, 0 deletions
diff --git a/python-updater b/python-updater
index e38bbf6..cd3803c 100755
--- a/python-updater
+++ b/python-updater
@@ -458,6 +458,10 @@ while [[ -n "${1}" ]]; do
shift
done
+if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]]; then
+ PATH="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers:${PATH}"
+fi
+
if has_version "=dev-lang/python-2*"; then
if [[ "$(readlink /usr/bin/python2)" != "python2."* ]]; then
die "'/usr/bin/python2' is not valid symlink"