catch upgraderequired response

This commit is contained in:
Damien Elmes 2012-05-30 16:09:52 +09:00
parent 2e233fb86f
commit 8fd920fce1

View file

@ -573,6 +573,9 @@ class FullSyncer(HttpSyncer):
self.col.close()
cont = self.req("download")
tpath = self.col.path + ".tmp"
if cont == "upgradeRequired":
runHook("sync", "upgradeRequired")
return
open(tpath, "wb").write(cont)
# check the received file is ok
d = DB(tpath)