diff options
author | Michael Vogt <egon@tas> | 2007-02-01 12:32:50 +0100 |
---|---|---|
committer | Michael Vogt <egon@tas> | 2007-02-01 12:32:50 +0100 |
commit | 36280399db0ae203d3f1ae4d44b946f31e9a38ce (patch) | |
tree | 79cba67d2c395b54d2b2ff5863de00ffeab4fdda /apt-pkg/acquire-method.h | |
parent | 362d29343e5d25248bcd84300aa1b18effe891e7 (diff) |
* commited the latest mirror failure detection code
Diffstat (limited to 'apt-pkg/acquire-method.h')
-rw-r--r-- | apt-pkg/acquire-method.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/apt-pkg/acquire-method.h b/apt-pkg/acquire-method.h index 9e908d32c..ee68c75f7 100644 --- a/apt-pkg/acquire-method.h +++ b/apt-pkg/acquire-method.h @@ -55,7 +55,9 @@ class pkgAcqMethod vector<string> Messages; FetchItem *Queue; FetchItem *QueueBack; - string FailExtra; + string FailReason; + string UsedMirror; + string IP; // Handlers for messages virtual bool Configuration(string Message); @@ -72,7 +74,6 @@ class pkgAcqMethod virtual void Exit() {}; public: - enum CnfFlags {SingleInstance = (1<<0), Pipeline = (1<<1), SendConfig = (1<<2), LocalOnly = (1<<3), NeedsCleanup = (1<<4), @@ -82,7 +83,8 @@ class pkgAcqMethod void Status(const char *Format,...); int Run(bool Single = false); - inline void SetFailExtraMsg(string Msg) {FailExtra = Msg;}; + inline void SetFailReason(string Msg) {FailReason = Msg;}; + inline void SetIP(string aIP) {IP = aIP;}; pkgAcqMethod(const char *Ver,unsigned long Flags = 0); virtual ~pkgAcqMethod() {}; |