HCoop
/
ntk
/
apt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* working mirror implementation based on http method
[ntk/apt.git]
/
methods
/
mirror.h
diff --git
a/methods/mirror.h
b/methods/mirror.h
index
ca34288
..
91cf8c6
100644
(file)
--- a/
methods/mirror.h
+++ b/
methods/mirror.h
@@
-20,17
+20,24
@@
using std::endl;
#include "http.h"
#include "http.h"
-class MirrorMethod : public
pkgAcq
Method
+class MirrorMethod : public
Http
Method
{
FetchResult Res;
{
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 HasMirrorFile;
+ bool Debug;
+
protected:
bool GetMirrorFile(string uri);
bool SelectMirror();
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);
public:
MirrorMethod();
virtual bool Fetch(FetchItem *Itm);