---
gx86/eclass/distutils-r1.eclass | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
index bab7dbc..e0df9f6 100644
--- a/gx86/eclass/distutils-r1.eclass
+++ b/gx86/eclass/distutils-r1.eclass
@@ -256,15 +256,14 @@ distutils-r1_python_install_all() {
local EPYTHON
python_export_best EPYTHON
- for f in "${D}"/{bin,sbin,usr/bin,usr/sbin,games/bin}/*-"${EPYTHON}"; do
- if [[ -x ${f} ]]; then
- debug-print "${FUNCNAME}: found executable at
${f#${D}/}"
+ local f
+ while IFS= read -r -d '' f; do
+ debug-print "${FUNCNAME}: found executable at ${f#${D}/}"
- local wrapf=${f%-${EPYTHON}}
+ local wrapf=${f%-${EPYTHON}}
- _python_ln_rel "${ED}"/usr/bin/python-exec "${wrapf}"
|| die
- fi
- done
+ _python_ln_rel "${ED}"/usr/bin/python-exec "${wrapf}" || die
+ done < <(find "${D}" -type f -executable -name "*-${EPYTHON}" -print0)
}
# @FUNCTION: distutils-r1_run_phase
--
1.7.12.4