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