summaryrefslogtreecommitdiff
path: root/methods/mirror.h
diff options
context:
space:
mode:
Diffstat (limited to 'methods/mirror.h')
-rw-r--r--methods/mirror.h15
1 files changed, 11 insertions, 4 deletions
diff --git a/methods/mirror.h b/methods/mirror.h
index ca3428830..91cf8c64f 100644
--- a/methods/mirror.h
+++ b/methods/mirror.h
@@ -20,17 +20,24 @@ using std::endl;
#include "http.h"
-class MirrorMethod : public pkgAcqMethod
+class MirrorMethod : public HttpMethod
{
FetchResult Res;
- string Mirror;
- string BaseUri;
- string MirrorFile;
+ string BaseUri; // the original mirror://... url
+ string Mirror; // the selected mirror uri (http://...)
+ string MirrorFile; //
bool HasMirrorFile;
+ bool Debug;
+
protected:
bool GetMirrorFile(string uri);
bool SelectMirror();
+ virtual void Fail(string Why, bool Transient = false);
+ virtual void URIStart(FetchResult &Res);
+ virtual void URIDone(FetchResult &Res,FetchResult *Alt = 0);
+ virtual bool Configuration(string Message);
+
public:
MirrorMethod();
virtual bool Fetch(FetchItem *Itm);