X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Futils.py;h=c9b54d078db3bc6b85e05e214823eb8b54f2aa74;hb=ea46d5070c3e5b20aa3f5eeef55f3c0ce82828e0;hp=5c7164705ee4147fe7f07c67d1adf0180e438cea;hpb=1d51baf77090bae1afb98016831a95c9b050ae2e;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]