summaryrefslogtreecommitdiff
path: root/methods/mirror.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2007-11-28 15:54:17 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2007-11-28 15:54:17 +0100
commit38eedeb77790c106eb35940e3d7835a7e0f0297e (patch)
treeef07054ed7ac5ce038dcc80d8ce11b832551dd7c /methods/mirror.h
parent39e1be0ff93e3084b7cb98b6a7d0c272a8b296b0 (diff)
methods/mirror.{cc,h}:
- improve the mirror method so that it only updates the mirror list from the server if we get new indexfiles - code cleanup
Diffstat (limited to 'methods/mirror.h')
-rw-r--r--methods/mirror.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/methods/mirror.h b/methods/mirror.h
index 798f5a9b5..ed817806b 100644
--- a/methods/mirror.h
+++ b/methods/mirror.h
@@ -26,13 +26,14 @@ class MirrorMethod : public HttpMethod
// we simply transform between BaseUri and Mirror
string BaseUri; // the original mirror://... url
string Mirror; // the selected mirror uri (http://...)
- string MirrorFile; //
- bool HasMirrorFile;
+ string MirrorFile; // the file that contains the list of mirrors
+ bool DownloadedMirrorFile; // already downloaded this session
bool Debug;
protected:
- bool GetMirrorFile(string uri);
+ bool DownloadMirrorFile(string uri);
+ string GetMirrorFileName(string uri);
bool SelectMirror();
bool Clean(string dir);