diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2010-06-02 23:57:00 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2010-06-02 23:57:00 +0200 |
commit | 2ac9b90b7b3ebeea9a2580b6f317f1dfefc8c8fe (patch) | |
tree | 49e4f5c5e749f8f27f12f20f0f60584071dbd214 /methods | |
parent | 963b16dcebba149ae2c35bd255b34242923fbea0 (diff) | |
download | apt-2ac9b90b7b3ebeea9a2580b6f317f1dfefc8c8fe.tar.gz |
methods/mirror.cc: debug improvements
Diffstat (limited to 'methods')
-rw-r--r-- | methods/mirror.cc | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/methods/mirror.cc b/methods/mirror.cc index ea0fba438..b2b6b2ecf 100644 --- a/methods/mirror.cc +++ b/methods/mirror.cc @@ -301,7 +301,7 @@ bool MirrorMethod::Fetch(FetchItem *Itm) DownloadMirrorFile(Itm->Uri); } - if(Mirror.empty()) { + if(AllMirrors.empty()) { if(!InitMirrors()) { // no valid mirror selected, something went wrong downloading // from the master mirror site most likely and there is @@ -322,7 +322,14 @@ bool MirrorMethod::Fetch(FetchItem *Itm) void MirrorMethod::Fail(string Err,bool Transient) { - // try the next mirror on fail + // FIXME: TryNextMirror is not ideal for indexfile as we may + // run into auth issues + + if (Debug) + clog << "Failure to get " << Queue->Uri << endl; + + // try the next mirror on fail (if its not a expected failure, + // e.g. translations are ok to ignore) if (!Queue->FailIgnore && TryNextMirror()) return; |