* commit 'lamby/master':
Revert "remove an unneeded linewrap" - not needed anymore.
Strip trailing newline, just like getstatusoutput
Signed-off-by: Joerg Jaspert <joerg@debian.org>
game_over()
whoami = utils.whoami()
- date = commands.getoutput('date -R').strip()
+ date = commands.getoutput('date -R')
# Log first; if it all falls apart I want a record that we at least tried.
logfile = utils.open_file(cnf["Rm::LogFile"], 'a')
output = "".join(pipe.stdout.readlines())
+ if output[-1:] == '\n':
+ output = output[:-1]
+
ret = pipe.wait()
if ret is None:
ret = 0