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
|
@ -9,7 +9,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.5.1"
|
||||
self.rev = 1761
|
||||
self.rev = 1762
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
|
@ -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…
Reference in a new issue