Remember hosts with general failures for
authorMichael Vogt <michael.vogt@ubuntu.com>
Wed, 14 Apr 2010 17:26:34 +0000 (19:26 +0200)
committerMichael Vogt <michael.vogt@ubuntu.com>
Wed, 14 Apr 2010 17:26:34 +0000 (19:26 +0200)
https://wiki.ubuntu.com/NetworklessInstallationFixes (LP: #556831).

debian/changelog
methods/connect.cc

index 6a078c4..896f850 100644 (file)
@@ -1,5 +1,9 @@
 apt (0.7.25.4) UNRELEASED; urgency=low
 
+  [ Evan Dandrea ]
+  * Remember hosts with general failures for
+    https://wiki.ubuntu.com/NetworklessInstallationFixes (LP: #556831).
+  
   [ Ivan Masár ]
   * Slovak translation update. Closes: #568294
   
index adb16a1..2f6b483 100644 (file)
@@ -116,6 +116,9 @@ static bool DoConnect(struct addrinfo *Addr,string Host,
       errno = Err;
       if(errno == ECONNREFUSED)
          Owner->SetFailExtraMsg("\nFailReason: ConnectionRefused");
+      else if (errno == ETIMEDOUT)
+        Owner->SetFailExtraMsg("\nFailReason: ConnectionTimedOut");
+      bad_addr.insert(bad_addr.begin(), string(Name));
       return _error->Errno("connect",_("Could not connect to %s:%s (%s)."),Host.c_str(),
                           Service,Name);
    }