]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.cc
be able to disable resolver with APT::Get::CallResolver and disable
[apt.git] / apt-pkg / acquire-worker.cc
index 4f0b52af9739e213d5ef55d578bcbf5250c8f74e..ddd8e31018c5bcc028d4fe0c2183fc558876704d 100644 (file)
@@ -199,6 +199,17 @@ bool pkgAcquire::Worker::RunMessages()
       pkgAcquire::Queue::QItem *Itm = 0;
       if (URI.empty() == false)
         Itm = OwnerQ->FindItem(URI,this);
+
+      // update used mirror
+      string UsedMirror = LookupTag(Message,"UsedMirror", "");
+      if (!UsedMirror.empty() && 
+          Itm && 
+          Itm->Description.find(" ") != string::npos) 
+      {
+         Itm->Description.replace(0, Itm->Description.find(" "), UsedMirror);
+         // FIXME: will we need this as well?
+         //Itm->ShortDesc = UsedMirror;
+      }
       
       // Determine the message number and dispatch
       switch (Number)