summaryrefslogtreecommitdiff
path: root/methods/connect.cc
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2005-08-23 08:20:18 +0000
committerMichael Vogt <michael.vogt@ubuntu.com>2005-08-23 08:20:18 +0000
commitbdcf3b49360a353381e981d1918fc300c559948a (patch)
tree09f334d69228757c90c56d0d644a169c300ee8a1 /methods/connect.cc
parent64995601ae9335dedd180d634940f1426598f7f0 (diff)
parent25182152bc7812fdd56fd40f8b9a04a140079585 (diff)
* cherry-picked patches from apt--fixes and apt--mvo
Patches applied: * michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-14 * added Hashsum support for file and cdrom * michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-18 * Change pkgPolicy::Pin from private to protected * michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-47 * improve the timeout handling (again)
Diffstat (limited to 'methods/connect.cc')
-rw-r--r--methods/connect.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/methods/connect.cc b/methods/connect.cc
index b85df6887..4e48927ed 100644
--- a/methods/connect.cc
+++ b/methods/connect.cc
@@ -166,8 +166,11 @@ bool Connect(string Host,int Port,const char *Service,int DefPort,int &Fd,
}
if (Res == EAI_AGAIN)
+ {
+ Owner->SetFailExtraMsg("\nFailReason: TmpResolveFailure");
return _error->Error(_("Temporary failure resolving '%s'"),
Host.c_str());
+ }
return _error->Error(_("Something wicked happened resolving '%s:%s' (%i)"),
Host.c_str(),ServStr,Res);
}