]> git.saurik.com Git - apt.git/commitdiff
* apt-pkg/acquire-worker.cc, methods/connect.cc:
authorMichael Vogt <michael.vogt@ubuntu.com>
Mon, 7 Jan 2008 17:45:30 +0000 (18:45 +0100)
committerMichael Vogt <michael.vogt@ubuntu.com>
Mon, 7 Jan 2008 17:45:30 +0000 (18:45 +0100)
  - consider a ResolveError a transient-network problem

apt-pkg/acquire-worker.cc
methods/connect.cc

index 739c9e32ccacf1e4381e1872b3a3db61c3f3067a..1a754dae905cd3f8aa6e49076ed07c7098be3e65 100644 (file)
@@ -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;
 
index 8c2ac6d56dab4451b41ba0208297cad60c40fbe1..aef7db3896d43de6f26bf2c2cdfd73f908fbaa69 100644 (file)
@@ -164,6 +164,7 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd,
                  DefPort = 0;
                  continue;
               }
+              Owner->SetFailExtraMsg("\nFailReason: ResolveFailure");
               return _error->Error(_("Could not resolve '%s'"),Host.c_str());
            }