]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/acquire-worker.cc
* Removed the more leftover #pragma interface/implementation
[apt.git] / apt-pkg / acquire-worker.cc
index 063aa5ed7e346d627b194393433171917a0f4501..25d40ef542f82a7f8af80c75e6284b6b2c1cf7ff 100644 (file)
@@ -304,6 +304,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();