]>
Commit | Line | Data |
---|---|---|
9c14e3d6 AL |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
094a497d | 3 | // $Id: init.cc,v 1.2 1998/07/12 23:58:26 jgg Exp $ |
9c14e3d6 AL |
4 | /* ###################################################################### |
5 | ||
6 | Init - Initialize the package library | |
7 | ||
8 | ##################################################################### */ | |
9 | /*}}}*/ | |
10 | // Include files /*{{{*/ | |
094a497d | 11 | #include <apt-pkg/init.h> |
9c14e3d6 AL |
12 | /*}}}*/ |
13 | ||
14 | // pkglibInitialize - Initialize the configuration class /*{{{*/ | |
15 | // --------------------------------------------------------------------- | |
16 | /* Directories are specified in such a way that the FindDir function will | |
17 | understand them. That is, if they don't start with a / then their parent | |
18 | is prepended, this allows a fair degree of flexability. */ | |
19 | bool pkglibInitialize(Configuration &Cnf) | |
20 | { | |
21 | // General APT things | |
22 | Cnf.Set("APT::Architecture","i386"); | |
23 | ||
24 | // State | |
25 | Cnf.Set("Dir::State","/var/state/apt/"); | |
26 | Cnf.Set("Dir::State::lists","lists/"); | |
27 | Cnf.Set("Dir::State::xstatus","xstatus"); | |
28 | Cnf.Set("Dir::State::userstatus","status.user"); | |
29 | ||
30 | // Cache | |
31 | Cnf.Set("Dir::Cache","/etc/apt/"); | |
32 | Cnf.Set("Dir::Cache::archives","archives/"); | |
33 | Cnf.Set("Dir::Cache::srcpkgcache","srcpkgcache"); | |
34 | Cnf.Set("Dir::Cache::pkhcache","pkgcache"); | |
35 | ||
36 | // Configuration | |
37 | Cnf.Set("Dir::Etc","/etc/apt/"); | |
38 | Cnf.Set("Dir::Etc::sourcelist","sources.list"); | |
39 | Cnf.Set("Dir::Etc::main","apt.conf"); | |
40 | ||
41 | return true; | |
42 | } | |
43 | /*}}}*/ |