commit:     b8c070708bbc6d0db544d4b04b530d6d03d39bb5
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Jul 28 06:15:53 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Sat Jul 28 06:15:53 2018 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=b8c07070

emerge-delta-webrsync: fix vecho command substitution

Since vecho now outputs to stderr, the output has to be redirected
to stdout when command substitution is intended.

Fixes: 2b6210463300 ("isolated-functions.sh: Ensure informational command 
output to stderr")

 misc/emerge-delta-webrsync | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/misc/emerge-delta-webrsync b/misc/emerge-delta-webrsync
index 14e5c7c55..8419e01a9 100755
--- a/misc/emerge-delta-webrsync
+++ b/misc/emerge-delta-webrsync
@@ -342,7 +342,7 @@ sync_local() {
        if type -P tarsync > /dev/null ; then
                local chown_opts="-o ${ownership%:*} -g ${ownership#*:}"
                chown ${ownership} "${repo_location}" > /dev/null 2>&1 || 
chown_opts=""
-               if ! tarsync $(__vecho -v) -s 1 ${chown_opts} \
+               if ! tarsync $(__vecho -v 2>&1) -s 1 ${chown_opts} \
                        -e /distfiles -e /packages -e /local "${file}" 
"${repo_location}"; then
                        eecho "tarsync failed; tarball is corrupt? (${file})"
                        return 1

Reply via email to