summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-04-09 05:29:31 +0000
committerZac Medico <zmedico@gentoo.org>2008-04-09 05:29:31 +0000
commit1a0b941b2c80fa569b31a578cbd933b6c0031d09 (patch)
tree38291f96d882eb6687bab3c691beb81941318587 /bin
parentMake depgraph.select_files() detect when a package name given as an argument (diff)
downloadportage-multirepo-1a0b941b2c80fa569b31a578cbd933b6c0031d09.tar.gz
portage-multirepo-1a0b941b2c80fa569b31a578cbd933b6c0031d09.tar.bz2
portage-multirepo-1a0b941b2c80fa569b31a578cbd933b6c0031d09.zip
Handle issues with newlines in elog messages that can trigger an unhandled
ValueError to be raised from a split() call inside collect_ebuild_messages(): * Use \0 to delimit messages, so that that elog messages containing newlines are handled correctly. * Handle a potential ValueError when splitting the message type. svn path=/main/trunk/; revision=9763
Diffstat (limited to 'bin')
-rwxr-xr-xbin/isolated-functions.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/isolated-functions.sh b/bin/isolated-functions.sh
index 737c5dfb..6bd33cb2 100755
--- a/bin/isolated-functions.sh
+++ b/bin/isolated-functions.sh
@@ -170,7 +170,7 @@ elog_base() {
return 1
;;
esac
- echo -e "${messagetype} $*" >> "${T}/logging/${EBUILD_PHASE:-other}"
+ echo -ne "${messagetype} $*\n\0" >> "${T}/logging/${EBUILD_PHASE:-other}"
return 0
}