From: Fabian Groffen Date: Tue, 23 Feb 2010 19:06:57 +0000 (-0000) Subject: revert readlink attempt, needs to support both relative and absolute symlinks, just... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=02703ce1291daea8d62b00648470eca92e4638c3;p=portage.git revert readlink attempt, needs to support both relative and absolute symlinks, just check if something exists svn path=/main/branches/prefix/; revision=15444 --- diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index 9d34a2403..5aa52f9d2 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -628,11 +628,7 @@ install_qa_check_prefix() { # does the shebang start with ${EPREFIX}? [[ ${line[0]} == ${EPREFIX}* ]] && continue # can we just fix it(tm)? - local el=${EPREFIX}${line[0]} edl=${ED}${line[0]} - # follow symlinks, e.g. python is a symlink - [[ -L ${el} ]] && el=$(readlink "${el}") - [[ -L ${edl} ]] && edl=$(readlink "${edl}") - if [[ -x ${el} || -x ${edl} ]] ; then + if [[ -e ${EPREFIX}${line[0]} || -e ${ED}${line[0]} ]] ; then eqawarn "prefixing shebang of ${fn#${D}}" sed -i -e '1s:^#! \?:#!'"${EPREFIX}"':' "${fn}" continue