summaryrefslogtreecommitdiffstats
path: root/pym/portage/elog
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2011-10-10 07:21:54 -0700
committerZac Medico <zmedico@gentoo.org>2011-10-10 07:21:54 -0700
commit8a119ea94ecc6668797e3a1358465ef3733f3a3e (patch)
tree7378185ac3c9ae942828036c0efab08998b6e348 /pym/portage/elog
parentaeced1ac893951aec4992b2a1af7a4d057d6ce24 (diff)
downloadportage-8a119ea94ecc6668797e3a1358465ef3733f3a3e.tar.gz
portage-8a119ea94ecc6668797e3a1358465ef3733f3a3e.tar.bz2
portage-8a119ea94ecc6668797e3a1358465ef3733f3a3e.zip
elog_process: add newlines for bug #386627
This fixes omission of newlines in saved messages since commit ca7bef7821876791a26a5f9df6938f4c77fe571f.
Diffstat (limited to 'pym/portage/elog')
-rw-r--r--pym/portage/elog/__init__.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pym/portage/elog/__init__.py b/pym/portage/elog/__init__.py
index 1a8309dbc..eeb6e7184 100644
--- a/pym/portage/elog/__init__.py
+++ b/pym/portage/elog/__init__.py
@@ -52,11 +52,11 @@ def _combine_logentries(logentries):
for msgtype, msgcontent in logentries[phase]:
if previous_type != msgtype:
previous_type = msgtype
- rValue.append("%s: %s\n" % (msgtype, phase))
+ rValue.append("%s: %s" % (msgtype, phase))
for line in msgcontent:
- rValue.append(line)
- rValue.append("\n")
- return "".join(rValue)
+ rValue.append(line.rstrip("\n"))
+ rValue.append("")
+ return "\n".join(rValue)
_elog_mod_imports = {}
def _load_mod(name):