pld-builder.new: PLD_Builder/chroot.py Fix reading stdout data.

arekm arekm at pld-linux.org
Thu Sep 15 19:28:24 CEST 2005


Author: arekm                        Date: Thu Sep 15 17:28:24 2005 GMT
Module: pld-builder.new               Tag: HEAD
---- Log message:
Fix reading stdout data.

---- Files affected:
pld-builder.new/PLD_Builder:
   chroot.py (1.14 -> 1.15) 

---- Diffs:

================================================================
Index: pld-builder.new/PLD_Builder/chroot.py
diff -u pld-builder.new/PLD_Builder/chroot.py:1.14 pld-builder.new/PLD_Builder/chroot.py:1.15
--- pld-builder.new/PLD_Builder/chroot.py:1.14	Thu Sep 15 17:35:18 2005
+++ pld-builder.new/PLD_Builder/chroot.py	Thu Sep 15 19:28:19 2005
@@ -28,8 +28,10 @@
             c = "%s 2>&1 | tee %s" % (c, logfile)
         else:
             c = "%s >> %s 2>&1" % (c, logfile)
+    lines = ""
     f = os.popen(c)
-    lines = f.xreadlines()
+    for l in f:
+        lines += l
     r = f.close()
     if r:
         if logstdout:
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/pld-builder.new/PLD_Builder/chroot.py?r1=1.14&r2=1.15&f=u




More information about the pld-cvs-commit mailing list