summaryrefslogtreecommitdiff
path: root/updater/main.cpp
diff options
context:
space:
mode:
authorAlex Borisov <b0ric.alex@gmail.com>2012-03-18 09:51:39 +0200
committerAlex Borisov <b0ric.alex@gmail.com>2012-03-18 09:51:39 +0200
commitd52c505daaef53cd1c039c1d2b993b7d389c9d94 (patch)
tree1a9fb70388d3c34d8e12cf0f7b2bf8cdce90fdf8 /updater/main.cpp
parent036dd14e811bd84dea65264a91f11a489538f1b1 (diff)
FIX: infinite uploading issue, download speed issue
Diffstat (limited to 'updater/main.cpp')
-rw-r--r--updater/main.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/updater/main.cpp b/updater/main.cpp
index a345d58..ac39264 100644
--- a/updater/main.cpp
+++ b/updater/main.cpp
@@ -57,13 +57,14 @@ int main(int argc, char* argv[])
Logger::Warn("Client executable is absent\n");
}
- if (QFile::rename(dir + PathSlash + "client.bin.latest", dir + PathSlash + ClientName))
+ // copy client.bin.lates to client.exe or client
+ if (QFile::copy(dir + PathSlash + "client.bin.latest", dir + PathSlash + ClientName))
{
Logger::Info("Client successfully updated\n");
}
else
{
- Logger::Fatal("Can't rename 'client.bin.latest'\n");
+ Logger::Fatal("Can't copy 'client.bin.latest'\n");
return -1;
}