diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2007-11-28 15:58:45 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2007-11-28 15:58:45 +0100 |
| commit | 318dd26ac9bdbb30bcd22201393dc73d8566b3cf (patch) | |
| tree | 7bd95cf6dfddb2587e7280829edf8538ac2002a7 /methods/mirror.h | |
| parent | c040d0b5e811399359c62fde1d5916b240053bda (diff) | |
| parent | 38eedeb77790c106eb35940e3d7835a7e0f0297e (diff) | |
* methods/mirror.{cc,h}:
- only update mirror list on IndexFile updates
Diffstat (limited to 'methods/mirror.h')
| -rw-r--r-- | methods/mirror.h | 7 |
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); |
