aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-28 19:48:00 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-28 19:48:00 +0000
commitb2930c3b16d71c6e992377764d5a8db78010de68 (patch)
tree6b792b1c8c58ca962cda45ba353b242bab13c3fe /pym/portage/elog
parentRemove pointless generator expression. (diff)
downloadportage-b2930c3b16d71c6e992377764d5a8db78010de68.tar.gz
portage-b2930c3b16d71c6e992377764d5a8db78010de68.tar.bz2
portage-b2930c3b16d71c6e992377764d5a8db78010de68.zip
Even though the message is split on $'\n' in elog_base(), it's still
not entirely safe to use it as a delimiter in the log file since there can still be escaped newlines that will be expanded due to the echo -e parameter. svn path=/main/trunk/; revision=11244
Diffstat (limited to 'pym/portage/elog')
-rw-r--r--pym/portage/elog/messages.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/elog/messages.py b/pym/portage/elog/messages.py
index 2b9f1b337..de736664c 100644
--- a/pym/portage/elog/messages.py
+++ b/pym/portage/elog/messages.py
@@ -35,7 +35,7 @@ def collect_ebuild_messages(path):
logentries[msgfunction] = []
lastmsgtype = None
msgcontent = []
- for l in open(filename, "r"):
+ for l in open(filename, "r").read().split("\0"):
if not l:
continue
try: