Add '-H' option to find to allow following symlinks passed as
parameters. This makes python_fix_shebang handle either file symlinks
passed directly, or directory symlinks passed directly for recursive
traversal. Both were currently ignored silently.
---
 eclass/python-utils-r1.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 95689f6..84a2588 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1131,7 +1131,7 @@ python_fix_shebang() {
                                eerror "  requested impl: ${EPYTHON}"
                                die "${FUNCNAME}: conversion of incompatible 
shebang requested"
                        fi
-               done < <(find "${path}" -type f "${find_args[@]}" -print0 || 
die)
+               done < <(find -H "${path}" -type f "${find_args[@]}" -print0 || 
die)
 
                if [[ ! ${any_fixed} ]]; then
                        eqawarn "QA warning: ${FUNCNAME}, ${path#${D}} did not 
match any fixable files."
-- 
2.6.3


Reply via email to