pld-builder.new: PLD_Builder/chroot.py - test yet another version
arekm
arekm at pld-linux.org
Sat Apr 17 23:21:58 CEST 2010
Author: arekm Date: Sat Apr 17 21:21:58 2010 GMT
Module: pld-builder.new Tag: HEAD
---- Log message:
- test yet another version
---- Files affected:
pld-builder.new/PLD_Builder:
chroot.py (1.38 -> 1.39)
---- Diffs:
================================================================
Index: pld-builder.new/PLD_Builder/chroot.py
diff -u pld-builder.new/PLD_Builder/chroot.py:1.38 pld-builder.new/PLD_Builder/chroot.py:1.39
--- pld-builder.new/PLD_Builder/chroot.py:1.38 Sat Apr 17 22:44:42 2010
+++ pld-builder.new/PLD_Builder/chroot.py Sat Apr 17 23:21:53 2010
@@ -18,12 +18,12 @@
if user == None:
user = config.builder_user
if nostdin:
- nostdin = "exec < /dev/null; "
- return "%s sudo chroot %s su - %s -c \"export LC_ALL=C; %s %s\"" \
- % (config.sudo_chroot_wrapper, config.chroot, user, nostdin, quote(cmd))
+ nostdin = "< /dev/null; "
+ return "%s sudo chroot %s su - %s -c \"export LC_ALL=C; %s %s\" %s" \
+ % (config.sudo_chroot_wrapper, config.chroot, user, quote(cmd), nostdin)
def command_sh(cmd):
- return "%s sudo chroot %s /bin/sh -c \"export LC_ALL=C; exec < /dev/null; %s\"" \
+ return "%s sudo chroot %s /bin/sh -c \"export LC_ALL=C; %s\" < /dev/null" \
% (config.sudo_chroot_wrapper, config.chroot, quote(cmd))
def popen(cmd, user = "builder", mode = "r"):
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/pld-builder.new/PLD_Builder/chroot.py?r1=1.38&r2=1.39&f=u
More information about the pld-cvs-commit
mailing list