]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
- no stdin
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 29 Mar 2010 15:32:01 +0000 (15:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    PLD_Builder/chroot.py -> 1.34

PLD_Builder/chroot.py

index a06c4a5396058510edcb771f31f60c7d354e01b3..fa3679b490c466486e793d9473a2307d202fe658 100644 (file)
@@ -32,9 +32,11 @@ def run(cmd, user = "builder", logfile = None, logstdout = None):
     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:
This page took 0.086392 seconds and 4 git commands to generate.