summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/paludis/files/paludis-0.26.0_alpha9-echo-functions.patch')
-rw-r--r--sys-apps/paludis/files/paludis-0.26.0_alpha9-echo-functions.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-apps/paludis/files/paludis-0.26.0_alpha9-echo-functions.patch b/sys-apps/paludis/files/paludis-0.26.0_alpha9-echo-functions.patch
new file mode 100644
index 000000000000..2da9e1351aa1
--- /dev/null
+++ b/sys-apps/paludis/files/paludis-0.26.0_alpha9-echo-functions.patch
@@ -0,0 +1,27 @@
+diff --git a/paludis/util/echo_functions.bash.in b/paludis/util/echo_functions.bash.in
+Source: written by David Leverton
+Upstream: probably by next release
+Reason: http://thread.gmane.org/gmane.linux.gentoo.user/194929
+index 3a15a77..9af0cf0 100644
+--- a/paludis/util/echo_functions.bash.in
++++ b/paludis/util/echo_functions.bash.in
+@@ -49,8 +49,8 @@ paludis_ecmd()
+ {
+ local cmd="$1" hook="$2" prefix="$3" message="$4" newline="$5"
+
+- echo -n "${prefix}${message}"
+- [[ -z "${newline}" ]] && echo
++ echo -n "${prefix}${message}" >&2
++ [[ -z "${newline}" ]] && echo >&2
+
+ if type perform_hook &>/dev/null ; then
+ if [[ -n "${hook}" ]] ; then
+@@ -150,7 +150,7 @@ _eend()
+ msg="${COLOUR_BRACKET}[ ${COLOUR_BAD}!!${COLOUR_BRACKET} ]${COLOUR_NORMAL}"
+ fi
+
+- echo -e "${PALUDIS_ENDCOL} ${msg}"
++ echo -e "${PALUDIS_ENDCOL} ${msg}" >&2
+
+ return ${retval}
+ }