X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=c9b54d078db3bc6b85e05e214823eb8b54f2aa74;hb=fa0e8a21b006b05ea56a8fb2a0c57006f6715217;hp=5c7164705ee4147fe7f07c67d1adf0180e438cea;hpb=6be5aed8f454679a634d194d0dc41d5dc9e5cb22;p=dak.git diff --git a/daklib/utils.py b/daklib/utils.py index 5c716470..c9b54d07 100755 --- a/daklib/utils.py +++ b/daklib/utils.py @@ -70,7 +70,9 @@ def dak_getstatusoutput(cmd): pipe = subprocess.Popen(cmd, shell=True, universal_newlines=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) - output, _ = pipe.communicate() + output = pipe.stdout.read() + + pipe.wait() if output[-1:] == '\n': output = output[:-1]