diff --git a/src/Config.py b/src/Config.py index cdf6f3f0..03abee5d 100644 --- a/src/Config.py +++ b/src/Config.py @@ -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" diff --git a/update.py b/update.py index 822b3574..1ca15a1a 100644 --- a/update.py +++ b/update.py @@ -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)