AC_CONFIG_HEADER(include/config.h:buildlib/config.h.in include/apti18n.h:buildlib/apti18n.h.in)
dnl -- SET THIS TO THE RELEASE VERSION --
- AC_DEFINE_UNQUOTED(VERSION,"0.7.9ubuntu6")
-AC_DEFINE_UNQUOTED(VERSION,"0.7.10")
++AC_DEFINE_UNQUOTED(VERSION,"0.7.9ubuntu7")
PACKAGE="apt"
AC_DEFINE_UNQUOTED(PACKAGE,"$PACKAGE")
AC_SUBST(PACKAGE)
-apt (0.7.11) UNRELEASED; urgency=low
++apt (0.7.9ubuntu7) hardy; urgency=low
++
++ * methods/connect.cc:
++ - remember hosts with Resolve failures or connect Timeouts
++ see https://wiki.ubuntu.com/NetworklessInstallationFixes
++
++ -- Michael Vogt <michael.vogt@ubuntu.com> Fri, 08 Feb 2008 11:38:35 +0100
++
+apt (0.7.9ubuntu6) hardy; urgency=low
- [ Colin Watson ]
- * apt-pkg/algorithms.cc:
- - Since APT::Get::List-Cleanup and APT::List-Cleanup both default to
- true, the effect of the compatibility code was to require both of them
- to be set to false in order to disable list cleanup; this broke the
- installer. Instead, disable list cleanup if either of them is set to
- false.
-
- [ Michael Vogt ]
* cmdline/apt-key:
- add support for a master-keyring that contains signing keys
that can be used to sign the archive signing keys. This should
#include <stdio.h>
#include <errno.h>
#include <unistd.h>
+#include <sstream>
+ #include<set>
+ #include<string>
+
// Internet stuff
#include <netinet/in.h>
#include <sys/socket.h>
NI_NUMERICHOST|NI_NUMERICSERV);
Owner->Status(_("Connecting to %s (%s)"),Host.c_str(),Name);
- if(bad_addr.find(string(Name)) != bad_addr.end())
+ // if that addr did timeout before, we do not try it again
++ if(bad_addr.find(string(Name)) != bad_addr.end())
+ return false;
+
/* If this is an IP rotation store the IP we are using.. If something goes
wrong this will get tacked onto the end of the error message */
if (LastHostAddr->ai_next != 0)
/* This implements a timeout for connect by opening the connection
nonblocking */
if (WaitFd(Fd,true,TimeOut) == false) {
- Owner->SetFailExtraMsg("\nFailReason: Timeout");
+ bad_addr.insert(bad_addr.begin(), string(Name));
+ Owner->SetFailReason("Timeout");
return _error->Error(_("Could not connect to %s:%s (%s), "
"connection timed out"),Host.c_str(),Service,Name);
}
DefPort = 0;
continue;
}
- Owner->SetFailExtraMsg("\nFailReason: ResolveFailure");
+ bad_addr.insert(bad_addr.begin(), Host);
+ Owner->SetFailReason("ResolveFailure");
return _error->Error(_("Could not resolve '%s'"),Host.c_str());
}