diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-20 20:38:11 +0000 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-02-20 20:38:11 +0000 |
commit | 75dd8af14b76bb84a69a927ecae93f60600b9667 (patch) | |
tree | 13875a55d9521fcd5342ba90c0783b18ee65a06a /methods/connect.cc | |
parent | 7f016f53293f9c8c149debd2b84b1efd4d9cc827 (diff) |
* only remove the sigfile if pkgAcqMetaSig::Failed() didn't fail for a network error
Diffstat (limited to 'methods/connect.cc')
-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); } |