summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>2012-03-03 23:35:29 +0000
committerArfrever Frehtes Taifersar Arahesis <arfrever.fta@gmail.com>2012-03-03 23:35:29 +0000
commit74a56c130ec54563e1344c9502e8b49ffd848862 (patch)
treefadbbdc90d3f4930c15bf9cc4881e31df15221cb
parentImprove handling of mtime. (diff)
downloadpython-updater-74a56c130ec54563e1344c9502e8b49ffd848862.tar.gz
python-updater-74a56c130ec54563e1344c9502e8b49ffd848862.tar.bz2
python-updater-74a56c130ec54563e1344c9502e8b49ffd848862.zip
Fix handling of sed.
-rwxr-xr-xpython-updater5
1 files changed, 4 insertions, 1 deletions
diff --git a/python-updater b/python-updater
index d34d916..fc3294f 100755
--- a/python-updater
+++ b/python-updater
@@ -489,7 +489,10 @@ while (($#)); do
done
if [[ "${PMS_COMMAND[${PMS_INDEX}]}" == "emerge" ]]; then
- alias sed="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers/sed"
+ sed="$(/usr/bin/python -c "import os; print(os.path.dirname(os.path.realpath('$(type -p emerge)')))")/ebuild-helpers/sed"
+ if [[ -x "${sed}" ]]; then
+ alias sed="${sed}"
+ fi
fi
if has_version "=dev-lang/python-2*"; then