Quote arrays in QA_PREBUILT handling.
authorZac Medico <zmedico@gentoo.org>
Sat, 21 Aug 2010 13:31:18 +0000 (06:31 -0700)
committerZac Medico <zmedico@gentoo.org>
Sat, 21 Aug 2010 13:31:18 +0000 (06:31 -0700)
bin/ebuild.sh

index 2fbd612bd2c1a74018f316120ea1473e5c23310f..84a83fe40f4ffb28612e6edc23aa7a57af5ef45f 100755 (executable)
@@ -2006,7 +2006,7 @@ if ! hasq "$EBUILD_PHASE" clean cleanrm ; then
                        # fnmatch patterns to regular expressions
                        for x in QA_DT_HASH QA_DT_NEEDED QA_PRESTRIPPED QA_SONAME ; do
                                if [[ $(declare -p $x 2>/dev/null) = declare\ -a* ]] ; then
-                                       eval "$x=(\${$x[@]} ${QA_PREBUILT//\*/.*})"
+                                       eval "$x=(\"\${$x[@]}\" ${QA_PREBUILT//\*/.*})"
                                else
                                        eval "$x+=\" ${QA_PREBUILT//\*/.*}\""
                                fi