init.cc 1.4 KB

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