From 92ed337115bcfb010571b17ede666fc179006e96 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Tue, 3 Feb 2009 18:24:06 +0000 Subject: [PATCH] Don't corrupt downloads on Windows Need to run Python with "-u" or stdout gets mangled. --- zeroinstall/injector/download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zeroinstall/injector/download.py b/zeroinstall/injector/download.py index 5c362bb..937cee8 100644 --- a/zeroinstall/injector/download.py +++ b/zeroinstall/injector/download.py @@ -88,7 +88,7 @@ class Download(object): # Can't use fork here, because Windows doesn't have it assert self.child is None, self.child - self.child = subprocess.Popen([sys.executable, __file__, self.url], stderr = subprocess.PIPE, stdout = self.tempfile) + self.child = subprocess.Popen([sys.executable, '-u', __file__, self.url], stderr = subprocess.PIPE, stdout = self.tempfile) self.status = download_fetching -- 2.11.4.GIT