use bash replacement instead of a call to tr
authorFabian Groffen <grobian@gentoo.org>
Sun, 24 Oct 2010 12:44:50 +0000 (14:44 +0200)
committerFabian Groffen <grobian@gentoo.org>
Sun, 24 Oct 2010 12:44:50 +0000 (14:44 +0200)
bin/misc-functions.sh

index ae2754129ee9b18ede25384fdbbdf3509abffa88..2396c1a499ba600c59a789926a89ae34a9eb6c69 100644 (file)
@@ -916,7 +916,7 @@ install_qa_check_macho() {
 
                # this is ugly, paths with spaces won't work
                reevaluate=0
-               for lib in $(echo ${needed} | tr , ' '); do
+               for lib in ${needed//,/ } ; do
                        if [[ ! -e ${lib} && ! -e ${D}${lib} && ${lib} != "@executable_path/"* && *${lib} != "@loader_path/"* ]] ; then
                                # try to "repair" this if possible, happens because of
                                # gen_usr_ldscript tactics