summaryrefslogtreecommitdiff
path: root/apt-pkg/contrib/configuration.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:59:40 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:59:40 +0000
commitff2a211aec45ac8c63ad60d75714da78d77ef69b (patch)
tree76794f1bbdaa5d55d3e373e5a283582d96b77873 /apt-pkg/contrib/configuration.cc
parent0b3e884979228557c0032ae01febe05c490a83ff (diff)
_config->Dump is now inlined, and calls Dump(clog). Du...
Author: doogie Date: 2002-11-09 17:11:25 GMT _config->Dump is now inlined, and calls Dump(clog). Dump(ostream&) is now exported. Fixed apt-config dump sending to stderr.
Diffstat (limited to 'apt-pkg/contrib/configuration.cc')
-rw-r--r--apt-pkg/contrib/configuration.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/apt-pkg/contrib/configuration.cc b/apt-pkg/contrib/configuration.cc
index bc48ddefd..18d6cd9ab 100644
--- a/apt-pkg/contrib/configuration.cc
+++ b/apt-pkg/contrib/configuration.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: configuration.cc,v 1.23 2002/09/14 05:29:22 jgg Exp $
+// $Id: configuration.cc,v 1.24 2002/11/09 17:11:25 doogie Exp $
/* ######################################################################
Configuration Class
@@ -397,14 +397,14 @@ bool Configuration::ExistsAny(const char *Name) const
// Configuration::Dump - Dump the config /*{{{*/
// ---------------------------------------------------------------------
/* Dump the entire configuration space */
-void Configuration::Dump()
+void Configuration::Dump(ostream& str)
{
/* Write out all of the configuration directives by walking the
configuration tree */
const Configuration::Item *Top = Tree(0);
for (; Top != 0;)
{
- clog << Top->FullTag() << " \"" << Top->Value << "\";" << endl;
+ str << Top->FullTag() << " \"" << Top->Value << "\";" << endl;
if (Top->Child != 0)
{