]> git.pld-linux.org Git - projects/pld-builder.new.git/commitdiff
Read stdout data (that we ignore anyway) to avoid 'Broken pipe' error.
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 16 Sep 2021 06:03:51 +0000 (08:03 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Thu, 16 Sep 2021 06:04:14 +0000 (08:04 +0200)
PLD_Builder/chroot.py

index 6e7976a9e7c6aa8d3124276e659b3d5eeb73b08a..e214ae1585b339e39a4656858a32206451c1d9cd 100644 (file)
@@ -44,6 +44,8 @@ def run(cmd, user = "builder", logfile = None, logstdout = None):
     if logstdout != None:
         for l in f:
             logstdout.write(l)
+    else:
+        f.read()
     r = f.close()
     if r == None:
         return 0
This page took 0.241849 seconds and 4 git commands to generate.