summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-28 00:30:58 +0100
committerBjørn Lindeijer <bjorn@lindeijer.nl>2009-03-28 00:30:58 +0100
commita5ed5126e8498d53a5f843d591ff183951418d1f (patch)
tree9efb6f32be68b5a6ab4f6d2118694c7f72722706
parente083abd148c70982a098d3f2fff8e61eee5c4f91 (diff)
downloadmana-a5ed5126e8498d53a5f843d591ff183951418d1f.tar.gz
mana-a5ed5126e8498d53a5f843d591ff183951418d1f.tar.bz2
mana-a5ed5126e8498d53a5f843d591ff183951418d1f.tar.xz
mana-a5ed5126e8498d53a5f843d591ff183951418d1f.zip
Take the server port out of the updates dir
It doesn't make much sense to combine the update host with the server port. Either use the update host (and path) or the server and its port. To me it makes more sense that if different servers share the same update host, this data should be shared by the client. Ultimately we should store the updates by their hash, so that we can stick everything in the same place and avoid storing any duplicates.
-rw-r--r--src/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index b10a8c42..5de5f365 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -250,8 +250,7 @@ static void setUpdatesDir()
{
if (pos + 3 < updateHost.length())
{
- updates << "updates/" << updateHost.substr(pos + 3)
- << "/" << loginData.port;
+ updates << "updates/" << updateHost.substr(pos + 3);
updatesDir = updates.str();
}
else