Browse code

Fix sha1 doesn't match bug during download

Change-Id: I528839c60bc34cb01db4ec10a880cdc83ada3edd
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/4217
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Xiaolin Li <xiaolinl@vmware.com>

Rui Gu authored on 2017/11/07 07:16:25
Showing 1 changed files
... ...
@@ -80,8 +80,8 @@ class pullSources:
80 80
             for block in response.iter_content(1024):
81 81
                 if not block:
82 82
                     break
83
-
84 83
                 handle.write(block)
84
+            handle.flush()
85 85
             response.close()
86 86
         return file_path
87 87