Rev1762, Fix binary files corruption with new updated

This commit is contained in:
shortcutme 2016-12-04 21:36:52 +01:00
parent b66317fa7d
commit f1f12ee8bd
2 changed files with 3 additions and 2 deletions

View file

@ -11,6 +11,7 @@ import cStringIO as StringIO
from gevent import monkey
monkey.patch_all()
def download():
from src.util import helper
@ -108,7 +109,7 @@ def update():
if zipdata:
data = zipdata.read(inner_path)
else:
data = open(updatesite_path + "/" + inner_path).read()
data = open(updatesite_path + "/" + inner_path, "rb").read()
try:
open(dest_path, 'wb').write(data)