pld-builder.new: PLD_Builder/chroot.py - no stdin
arekm
arekm at pld-linux.org
Mon Mar 29 17:32:06 CEST 2010
Author: arekm Date: Mon Mar 29 15:32:06 2010 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- no stdin
---- Files affected:
pld-builder.new/PLD_Builder:
chroot.py (1.33 -> 1.34)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/chroot.py
diff -u pld-builder.new/PLD_Builder/chroot.py:1.33 pld-builder.new/PLD_Builder/chroot.py:1.34
--- pld-builder.new/PLD_Builder/chroot.py:1.33 Fri Feb 6 10:59:32 2009
+++ pld-builder.new/PLD_Builder/chroot.py Mon Mar 29 17:32:01 2010
@@ -32,9 +32,11 @@
c = command(cmd, user)
if logfile != None:
if logstdout != None:
- c = "%s 2>&1 | /usr/bin/tee -a %s" % (c, logfile)
+ c = "%s < /dev/null 2>&1 | /usr/bin/tee -a %s" % (c, logfile)
else:
- c = "%s >> %s 2>&1" % (c, logfile)
+ c = "%s < /dev/null >> %s 2>&1" % (c, logfile)
+ else:
+ c = "%s < /dev/null" % (c)
f = os.popen(c)
if logstdout != None:
for l in f:
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/chroot.py?r1=1.33&r2=1.34&f=u
More information about the pld-cvs-commit
mailing list