summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire-worker.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2008-01-07 18:45:30 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2008-01-07 18:45:30 +0100
commitf0983ff2091df782027a2e344cbd9e3df43c1450 (patch)
tree4eb2245274fc301e2f7e2a6a59918b539c13f631 /apt-pkg/acquire-worker.cc
parent760d4968005c97f0d5fd6403633f367aac89c763 (diff)
* apt-pkg/acquire-worker.cc, methods/connect.cc:
- consider a ResolveError a transient-network problem
Diffstat (limited to 'apt-pkg/acquire-worker.cc')
-rw-r--r--apt-pkg/acquire-worker.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/acquire-worker.cc b/apt-pkg/acquire-worker.cc
index 739c9e32c..1a754dae9 100644
--- a/apt-pkg/acquire-worker.cc
+++ b/apt-pkg/acquire-worker.cc
@@ -325,6 +325,7 @@ bool pkgAcquire::Worker::RunMessages()
// set some status
if(LookupTag(Message,"FailReason") == "Timeout" ||
LookupTag(Message,"FailReason") == "TmpResolveFailure" ||
+ LookupTag(Message,"FailReason") == "ResolveFailure" ||
LookupTag(Message,"FailReason") == "ConnectionRefused")
Owner->Status = pkgAcquire::Item::StatTransientNetworkError;