From: Fabian Groffen Date: Wed, 12 Sep 2012 18:24:24 +0000 (+0200) Subject: install_qa_check_prefix: auto fix shebang of init-scripts X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=eb39f4906a33c53ba4af8070d4c449d40eb2026a;p=portage.git install_qa_check_prefix: auto fix shebang of init-scripts Always consider scripts in ${EPREFIX}/etc/init.d as must-fixable. --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index d46ab060b..8c6a12683 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -949,8 +949,9 @@ install_qa_check_prefix() { fi continue fi - # unprefixed shebang, is the script directly in $PATH? - if [[ ":${PATH}:" == *":${fp}:"* ]] ; then + # unprefixed shebang, is the script directly in $PATH or an init + # script? + if [[ ":${PATH}:${EPREFIX}/etc/init.d:" == *":${fp}:"* ]] ; then if [[ -e ${EROOT}${line[0]} || -e ${ED}${line[0]} ]] ; then # is it unprefixed, but we can just fix it because a # prefixed variant exists