X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/86c17f0a4bd3c0e3dde5bb58b3df9c41e5a88763..e729233f0c20656bf41f8254d03160191e2f4d81:/methods/mirror.h diff --git a/methods/mirror.h b/methods/mirror.h index a47b8fbf1..ed817806b 100644 --- a/methods/mirror.h +++ b/methods/mirror.h @@ -26,14 +26,16 @@ 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); // we need to overwrite those to transform the url back virtual void Fail(string Why, bool Transient = false);