summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2015-11-26 23:21:52 +0100
committerMichał Górny <mgorny@gentoo.org>2015-11-28 20:09:06 +0100
commit64f62e4bfa4b1bd080b73ff461daa33d9606d589 (patch)
treed1ba4ebff448fcde677272a7bf0e90e12be62ba7 /eclass/python-utils-r1.eclass
parentpython-utils-r1.eclass: Add missing ||die on file read (diff)
downloadgentoo-64f62e4bfa4b1bd080b73ff461daa33d9606d589.tar.gz
gentoo-64f62e4bfa4b1bd080b73ff461daa33d9606d589.tar.bz2
gentoo-64f62e4bfa4b1bd080b73ff461daa33d9606d589.zip
python-utils-r1.eclass: python_fix_shebang, accept symlink as parameter
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.
Diffstat (limited to 'eclass/python-utils-r1.eclass')
-rw-r--r--eclass/python-utils-r1.eclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index 7b0f2f87a566..e0b13455d66e 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1133,7 +1133,7 @@ python_fix_shebang() {
eerror " requested impl: ${EPYTHON}"
die "${FUNCNAME}: conversion of incompatible shebang requested"
fi
- done < <(find "${path}" -type f -print0 || die)
+ done < <(find -H "${path}" -type f -print0 || die)
if [[ ! ${any_fixed} ]]; then
eqawarn "QA warning: ${FUNCNAME}, ${path#${D}} did not match any fixable files."