diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2009-10-16 16:04:41 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2009-10-16 16:04:41 +0200 |
commit | f1c081b6ad0c5925e9668fd159f1ac6d8ab672bc (patch) | |
tree | 70f9ca512d85d779d32c01c38e65000f6e9eebdf /apt-pkg/contrib/netrc.cc | |
parent | 1de1f70383ea2d44147ccaceff280fd70faf4c81 (diff) |
add ftp support, basic debugging
Diffstat (limited to 'apt-pkg/contrib/netrc.cc')
-rw-r--r-- | apt-pkg/contrib/netrc.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apt-pkg/contrib/netrc.cc b/apt-pkg/contrib/netrc.cc index 851b661a4..186527306 100644 --- a/apt-pkg/contrib/netrc.cc +++ b/apt-pkg/contrib/netrc.cc @@ -12,6 +12,7 @@ ##################################################################### */ /*}}}*/ +#include <apt-pkg/configuration.h> #include <iostream> #include <stdio.h> #include <stdlib.h> @@ -146,7 +147,9 @@ int parsenetrc (char *host, char *login, char *password, char *netrcfile = NULL) void maybe_add_auth (URI &Uri, string NetRCFile) { - if (Uri.Password.empty () == true && Uri.User.empty () == true) + if (_config->FindB("Debug::Acquire::netrc", false) == true) + std::clog << "maybe_add_auth: " << NetRCFile << std::endl; + if (Uri.Password.empty () == true || Uri.User.empty () == true) { if (NetRCFile.empty () == false) { |