diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:43 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:50:43 +0000 |
commit | 9c14e3d619e713aefa623986b5bbae81a1d6cc94 (patch) | |
tree | 282c77581b35bbdc46faa400be5d64ec37605507 /apt-pkg/init.cc | |
parent | 6c139d6e362f04a1582e8a8f511f8aeab031fecf (diff) |
Config class and source list
Author: jgg
Date: 1998-07-09 05:12:27 GMT
Config class and source list
Diffstat (limited to 'apt-pkg/init.cc')
-rw-r--r-- | apt-pkg/init.cc | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/apt-pkg/init.cc b/apt-pkg/init.cc new file mode 100644 index 000000000..5dd7b58aa --- /dev/null +++ b/apt-pkg/init.cc @@ -0,0 +1,43 @@ +// -*- mode: cpp; mode: fold -*- +// Description /*{{{*/ +// $Id: init.cc,v 1.1 1998/07/09 05:12:27 jgg Exp $ +/* ###################################################################### + + Init - Initialize the package library + + ##################################################################### */ + /*}}}*/ +// Include files /*{{{*/ +#include <pkglib/init.h> + /*}}}*/ + +// pkglibInitialize - Initialize the configuration class /*{{{*/ +// --------------------------------------------------------------------- +/* Directories are specified in such a way that the FindDir function will + understand them. That is, if they don't start with a / then their parent + is prepended, this allows a fair degree of flexability. */ +bool pkglibInitialize(Configuration &Cnf) +{ + // General APT things + Cnf.Set("APT::Architecture","i386"); + + // State + Cnf.Set("Dir::State","/var/state/apt/"); + Cnf.Set("Dir::State::lists","lists/"); + Cnf.Set("Dir::State::xstatus","xstatus"); + Cnf.Set("Dir::State::userstatus","status.user"); + + // Cache + Cnf.Set("Dir::Cache","/etc/apt/"); + Cnf.Set("Dir::Cache::archives","archives/"); + Cnf.Set("Dir::Cache::srcpkgcache","srcpkgcache"); + Cnf.Set("Dir::Cache::pkhcache","pkgcache"); + + // Configuration + Cnf.Set("Dir::Etc","/etc/apt/"); + Cnf.Set("Dir::Etc::sourcelist","sources.list"); + Cnf.Set("Dir::Etc::main","apt.conf"); + + return true; +} + /*}}}*/ |