summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:59:56 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:59:56 +0000
commit1809f8d29cee7a6328be806548317bc99632a61b (patch)
treee979757cc2cf32d31a78b129fd361992badf6f7e
parente184b9df4e03547ea6df40285b8e3714eed9112c (diff)
Change verbose logging output of apt-ftparchive to go t...
Author: doogie Date: 2002-11-11 04:27:51 GMT Change verbose logging output of apt-ftparchive to go to stderr, instead of stdout. Also, errors that occur no longer go to stdout, but stderr.
-rw-r--r--debian/changelog3
-rw-r--r--ftparchive/apt-ftparchive.cc8
-rw-r--r--ftparchive/writer.cc6
3 files changed, 10 insertions, 7 deletions
diff --git a/debian/changelog b/debian/changelog
index b3d96d617..cf266558f 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -65,6 +65,9 @@ apt (0.5.5) unstable; urgency=low
#92358
* Add an options and timeout config item to ssh/rsh. Closes: #90654
* libapt-pkg-dev now depends on apt-utils. Closes: #133942.
+ * Change verbose logging output of apt-ftparchive to go to stderr,
+ instead of stdout. Also, errors that occur no longer go to stdout,
+ but stderr. Closes: #161592
-- Jason Gunthorpe <jgg@debian.org> Sun, 15 Sep 2002 17:16:59 -0600
diff --git a/ftparchive/apt-ftparchive.cc b/ftparchive/apt-ftparchive.cc
index 3fefafb2c..b150d4092 100644
--- a/ftparchive/apt-ftparchive.cc
+++ b/ftparchive/apt-ftparchive.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: apt-ftparchive.cc,v 1.4 2001/06/26 02:50:27 jgg Exp $
+// $Id: apt-ftparchive.cc,v 1.5 2002/11/11 04:27:51 doogie Exp $
/* ######################################################################
apt-scanpackages - Efficient work-alike for dpkg-scanpackages
@@ -910,9 +910,9 @@ int main(int argc, const char *argv[])
}
// Setup the output streams
- c0out.rdbuf(cout.rdbuf());
- c1out.rdbuf(cout.rdbuf());
- c2out.rdbuf(cout.rdbuf());
+ c0out.rdbuf(clog.rdbuf());
+ c1out.rdbuf(clog.rdbuf());
+ c2out.rdbuf(clog.rdbuf());
Quiet = _config->FindI("quiet",0);
if (Quiet > 0)
c0out.rdbuf(devnull.rdbuf());
diff --git a/ftparchive/writer.cc b/ftparchive/writer.cc
index b3ee49c75..9f053bd2c 100644
--- a/ftparchive/writer.cc
+++ b/ftparchive/writer.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: writer.cc,v 1.5 2002/04/24 05:02:40 jgg Exp $
+// $Id: writer.cc,v 1.6 2002/11/11 04:27:51 doogie Exp $
/* ######################################################################
Writer
@@ -118,9 +118,9 @@ int FTWScanner::Scanner(const char *File,const struct stat *sb,int Flag)
bool Type = _error->PopMessage(Err);
if (Type == true)
- c1out << "E: " << Err << endl;
+ cerr << "E: " << Err << endl;
else
- c1out << "W: " << Err << endl;
+ cerr << "W: " << Err << endl;
if (Err.find(File) != string::npos)
SeenPath = true;