Re: [master] fix for a bug in 05ce88b2 that split one line over several in program.log

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 == '\n':
+            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@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux