aboutsummaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2023-05-13 13:49:24 +0200
committerUlrich Müller <ulm@gentoo.org>2023-05-13 22:13:25 +0200
commit965dcfa448c38570cf9ac28d7c6232d1df615871 (patch)
tree3441bf2324d364b108166b8a2d91d2c67c8c719d /bin
parentportageq-wrapper: New wrapper script (diff)
downloadportage-965dcfa448c38570cf9ac28d7c6232d1df615871.tar.gz
portage-965dcfa448c38570cf9ac28d7c6232d1df615871.tar.bz2
portage-965dcfa448c38570cf9ac28d7c6232d1df615871.zip
portageq-wrapper: Look for portageq also in PORTAGE_BIN_PATH
Suggested-by: Arfrever Frehtes Taifersar Arahesis <arfrever@apache.org> Signed-off-by: Ulrich Müller <ulm@gentoo.org>
Diffstat (limited to 'bin')
-rwxr-xr-xbin/portageq-wrapper2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/portageq-wrapper b/bin/portageq-wrapper
index 2ca4052c4..afa2defe1 100755
--- a/bin/portageq-wrapper
+++ b/bin/portageq-wrapper
@@ -8,7 +8,7 @@ cd "${PORTAGE_PYM_PATH}" || exit 1
IFS=":"
set -f # in case ${PATH} contains any shell glob characters
-for path in ${PATH}; do
+for path in "${PORTAGE_BIN_PATH}" ${PATH}; do
[[ ${path} == */portage/*/ebuild-helpers* ]] && continue
[[ -x ${path}/portageq ]] || continue
PYTHONPATH=${PORTAGE_PYTHONPATH:-${PORTAGE_PYM_PATH}} \