浏览代码

fix incorrect display of downloaded files in the build script

This was due to stdout not being flushed in 659a072fe6eb646523d8feba8147dbd6842cc417
Ashish Kulkarni 11 年之前
父节点
当前提交
a4e0a63c11
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      scripts/build.py

+ 2 - 1
scripts/build.py

@@ -341,7 +341,8 @@ def download_file(url, dir, sha1):
     if hash != sha1:
     if hash != sha1:
         error('Checksum mismatch for %s' % name)
         error('Checksum mismatch for %s' % name)
         os.remove(loc)
         os.remove(loc)
-    sys.stdout.write("\rDownloaded: %s [checksum OK]" % name)
+    sys.stdout.write("\rDownloaded: %s [checksum OK]\n" % name)
+    sys.stdout.flush()
     return loc
     return loc
 
 
 def build_openssl(config, basedir):
 def build_openssl(config, basedir):