commit: cc9000526ff239994ae2050c2df9f2e6f6512055 Author: Thomas Sachau <tommy <AT> gentoo <DOT> org> AuthorDate: Sat May 27 08:45:01 2017 +0000 Commit: Thomas Sachau <tommy <AT> gentoo <DOT> org> CommitDate: Sat May 27 08:45:01 2017 +0000 URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=cc900052
Check for symlink instead of existing target (of symlink) bin/auto-multilib.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/auto-multilib.sh b/bin/auto-multilib.sh index c17c2e8e8..b5043e041 100755 --- a/bin/auto-multilib.sh +++ b/bin/auto-multilib.sh @@ -269,12 +269,12 @@ _finalize_abi_install() { if [ "${ABI}" != "${first_installed_abi}" ]; then __vecho ">>> Removing installed symlinks $(_get_abi_string)" for i in $(find ${D} -type l) ; do - [[ -e "${D%/}".${first_installed_abi}/${i/${D}} ]] && rm -f ${i} + [[ -L "${D%/}".${first_installed_abi}/${i/${D}} ]] && rm -f ${i} done fi # Create wrapper symlink for *-config files - local i= + local i= prep_ml_binaries $(find "${D}"usr/bin "${D}"usr/sbin "${D}"bin "${D}"sbin -type f -name '*-config' 2>/dev/null) local noabi=()