diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-06-02 16:40:40 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-06-02 16:40:40 +0200 |
commit | 96db74ce38e9451609fe33f9e25f3f9d42b1fe22 (patch) | |
tree | ecd7cc66e44ec46067484486a4b90a574fc61d21 /methods/mirror.h | |
parent | e9deb44823c85daa7bb8e485610c0fad94f4be2c (diff) |
* apt-pkg/deb/dpkgpm.cc:
- add missing include
* methods/mirror.{cc,h}:
- add SelectNextMirror() and InitMirrors() functions
- read all mirrors into the AllMirrors vector
Diffstat (limited to 'methods/mirror.h')
-rw-r--r-- | methods/mirror.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/methods/mirror.h b/methods/mirror.h index ed817806b..1b506dc87 100644 --- a/methods/mirror.h +++ b/methods/mirror.h @@ -26,6 +26,7 @@ class MirrorMethod : public HttpMethod // we simply transform between BaseUri and Mirror string BaseUri; // the original mirror://... url string Mirror; // the selected mirror uri (http://...) + vector<string> AllMirrors; // all available mirrors string MirrorFile; // the file that contains the list of mirrors bool DownloadedMirrorFile; // already downloaded this session @@ -34,7 +35,8 @@ class MirrorMethod : public HttpMethod protected: bool DownloadMirrorFile(string uri); string GetMirrorFileName(string uri); - bool SelectMirror(); + bool InitMirrors(); + bool SelectNextMirror(); bool Clean(string dir); // we need to overwrite those to transform the url back |