Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   CentOS (http://www.linux-archive.org/centos/)
-   -   fix for a bug in 05ce88b2 that split one line over several in program.log (http://www.linux-archive.org/centos/299779-fix-bug-05ce88b2-split-one-line-over-several-program-log.html)

Ales Kozumplik 12-23-2009 04:06 PM

fix for a bug in 05ce88b2 that split one line over several in program.log
 
On 12/23/2009 05:58 PM, Chris Lumens wrote:

@@ -305,7 +306,11 @@ def execWithCallback(command, argv, stdin = None, stdout = None,
if echo:
os.write(stdout, s)

- map(program_log.info, s.splitlines())
+ if s == '
':
+ program_log.info(logline)
+ logline = '
+ else:
+ logline += s;


You don't need a semicolon here.


I've spent too much time this week in C you see.

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


All times are GMT. The time now is 10:32 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.