Mercurial > gub
changeset 3483:c8213beaa6b6
Do not lose any log messages.
author | Jan Nieuwenhuizen <janneke@gnu.org> |
---|---|
date | Fri, 11 May 2007 23:38:02 +0200 |
parents | 5ebb0f9881f0 |
children | 4d781ba5e0bb |
files | gub/oslog.py |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/oslog.py Fri May 11 22:52:52 2007 +0200 +++ b/gub/oslog.py Fri May 11 23:38:02 2007 +0200 @@ -61,7 +61,9 @@ time.sleep (0.0001) line = proc.stdout.readline () - self.log (line, level['output'], verbose) + while line: + self.log (line, level['output'], verbose) + line = proc.stdout.readline () if proc.returncode: m = 'Command barfed: %(cmd)s\n' % locals () self.error (m)