summaryrefslogtreecommitdiff
path: root/apt-pkg
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2009-10-16 16:04:41 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2009-10-16 16:04:41 +0200
commitf1c081b6ad0c5925e9668fd159f1ac6d8ab672bc (patch)
tree70f9ca512d85d779d32c01c38e65000f6e9eebdf /apt-pkg
parent1de1f70383ea2d44147ccaceff280fd70faf4c81 (diff)
add ftp support, basic debugging
Diffstat (limited to 'apt-pkg')
-rw-r--r--apt-pkg/contrib/netrc.cc5
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)
{