diff options
author | Michael Vogt <egon@debian-devbox> | 2011-08-15 14:10:42 +0200 |
---|---|---|
committer | Michael Vogt <egon@debian-devbox> | 2011-08-15 14:10:42 +0200 |
commit | c5ca2c52a98fcb50de6429cf370ed5b6b7602a00 (patch) | |
tree | 03dbb2f6898ad12126c40e6f7c64c01e863ccacd /apt-pkg/acquire-method.cc | |
parent | 97efc27f0723f09405d7a1836ab21c2e2948eb10 (diff) | |
parent | d4882aa1e1a37b3092950180036676a930a5792f (diff) |
merged from the debian-sid branch
Diffstat (limited to 'apt-pkg/acquire-method.cc')
-rw-r--r-- | apt-pkg/acquire-method.cc | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/apt-pkg/acquire-method.cc b/apt-pkg/acquire-method.cc index 8c353beb2..25c6c674d 100644 --- a/apt-pkg/acquire-method.cc +++ b/apt-pkg/acquire-method.cc @@ -81,7 +81,7 @@ void pkgAcqMethod::Fail(bool Transient) void pkgAcqMethod::Fail(string Err,bool Transient) { // Strip out junk from the error messages - for (string::iterator I = Err.begin(); I != Err.end(); I++) + for (string::iterator I = Err.begin(); I != Err.end(); ++I) { if (*I == '\r') *I = ' '; @@ -425,12 +425,8 @@ void pkgAcqMethod::Status(const char *Format,...) to keep the pipeline synchronized. */ void pkgAcqMethod::Redirect(const string &NewURI) { - std::cout << "103 Redirect\nURI: "; - if (Queue != 0) - std::cout << Queue->Uri << "\n"; - else - std::cout << "<UNKNOWN>\n"; - std::cout << "New-URI: " << NewURI << "\n" + std::cout << "103 Redirect\nURI: " << Queue->Uri << "\n" + << "New-URI: " << NewURI << "\n" << "\n" << std::flush; // Change the URI for the request. |