diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-21 08:08:18 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-21 08:08:18 +0000 |
commit | a4977aac2bc7999f805550e3bcd5fe49958fe128 (patch) | |
tree | 26b08c729d1e41a6cc4f0623d870b0b325805a53 /methods | |
parent | 9ceaa28f2ce0bde0cbf6f73a32a68761ec85f11d (diff) | |
parent | 0c1b7be9c1a30fddd72d5b80bb2e566fe379b166 (diff) |
* merged with apt--mvo
Patches applied:
* michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-134
* only remove the sigfile if pkgAcqMetaSig::Failed() didn't fail for a network error
* michael.vogt@ubuntu.com--2005/apt--mvo--0--patch-135
tyop
Diffstat (limited to 'methods')
-rw-r--r-- | methods/connect.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/methods/connect.cc b/methods/connect.cc index 4e48927ed..8c2ac6d56 100644 --- a/methods/connect.cc +++ b/methods/connect.cc @@ -103,6 +103,8 @@ static bool DoConnect(struct addrinfo *Addr,string Host, if (Err != 0) { errno = Err; + if(errno == ECONNREFUSED) + Owner->SetFailExtraMsg("\nFailReason: ConnectionRefused"); return _error->Errno("connect",_("Could not connect to %s:%s (%s)."),Host.c_str(), Service,Name); } |