]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.cc
* apt-pkg/depcache.cc:
[apt.git] / apt-pkg / acquire-worker.cc
index d06024178ef4fe17fe4adf97a7b14a7aa2423579..8ab67778be5b8322fcbb1967bb74b253144fb494 100644 (file)
@@ -307,6 +307,13 @@ bool pkgAcquire::Worker::RunMessages()
            pkgAcquire::Item *Owner = Itm->Owner;
            pkgAcquire::ItemDesc Desc = *Itm;
            OwnerQ->ItemDone(Itm);
+
+           // set some status
+           if(LookupTag(Message,"FailReason") == "Timeout" || 
+              LookupTag(Message,"FailReason") == "TmpResolveFailure" ||
+              LookupTag(Message,"FailReason") == "ConnectionRefused") 
+              Owner->Status = pkgAcquire::Item::StatTransientNetworkError;
+
            Owner->Failed(Message,Config);
            ItemDone();