Rev1762, Fix binary files corruption with new updated
This commit is contained in:
parent
b66317fa7d
commit
f1f12ee8bd
2 changed files with 3 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue