summaryrefslogtreecommitdiff
path: root/methods
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-03-14 11:34:32 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2011-03-14 11:34:32 +0100
commit196fd13629fc0f673b18735d633bdf69a3272590 (patch)
tree7217babb8ca4b9cf64d8ad0b9ea973fb30f7a6f4 /methods
parentd6cc7079e895e76ad9d086fcc6a40224dd41bb62 (diff)
* mirror method:
- when downloading data, show the mirror being used
Diffstat (limited to 'methods')
-rw-r--r--methods/mirror.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/methods/mirror.cc b/methods/mirror.cc
index d092cc657..5a53d3c81 100644
--- a/methods/mirror.cc
+++ b/methods/mirror.cc
@@ -186,6 +186,10 @@ bool MirrorMethod::TryNextMirror()
Queue->Uri.replace(0, mirror->length(), *nextmirror);
if (Debug)
clog << "TryNextMirror: " << Queue->Uri << endl;
+
+ // inform parent
+ UsedMirror = *nextmirror;
+ Log("Switching mirror");
return true;
}