pld-builder.new: PLD_Builder/build.py - fix skip commands logging by subshe...
glen
glen at pld-linux.org
Mon Feb 8 22:13:32 CET 2010
Author: glen Date: Mon Feb 8 21:13:32 2010 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- fix skip commands logging by subshell, (only last command was logged before
---- Files affected:
pld-builder.new/PLD_Builder:
build.py (1.14 -> 1.15)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/build.py
diff -u pld-builder.new/PLD_Builder/build.py:1.14 pld-builder.new/PLD_Builder/build.py:1.15
--- pld-builder.new/PLD_Builder/build.py:1.14 Mon Feb 8 21:36:34 2010
+++ pld-builder.new/PLD_Builder/build.py Mon Feb 8 22:13:27 2010
@@ -33,7 +33,8 @@
command = c
if "no-chroot" in batch.command_flags:
- c = "%s >> %s 2>&1" % (command, batch.logfile)
+ # TODO: the append here by shell hack should be solved in python
+ c = "(%s) >> %s 2>&1" % (command, batch.logfile)
f = os.popen(c)
for l in f.xreadlines():
pass
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/build.py?r1=1.14&r2=1.15&f=u
More information about the pld-cvs-commit
mailing list