~jr/ubuntu/oneiric/apt/bzr-get-rename

« back to all changes in this revision

Viewing changes to apt-pkg/init.cc

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2005-03-07 20:08:33 UTC
  • Revision ID: james.westby@ubuntu.com-20050307200833-0lxdgg2cb4oculdv
Tags: 0.6.35
* Merge apt--mvo--0 (incorporates 0.6.34ubuntu1):
  - Implement MaxSize and MaxAge in apt.cron.daily, to prevent the cache
    from growing too large (Ubuntu #6761)
  - some comments about the pkgAcqMetaSig::Custom600Headers() added
  - use gpg --with-colons
  - commented the ftp no_proxy unseting in methods/ftp.cc
  - added support for "Acquire::gpgv::options" in methods/gpgv.cc
* Merge bubulle@debian.org--2005/apt--main--0
  - Make capitalization more consistent
  - Un-fuzzy translations resulting from capitalization changes
  - Italian translation update

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
// -*- mode: cpp; mode: fold -*-
2
2
// Description                                                          /*{{{*/
3
 
// $Id: init.cc,v 1.16 2001/03/13 06:51:46 jgg Exp $
 
3
// $Id: init.cc,v 1.21 2004/02/27 00:46:44 mdz Exp $
4
4
/* ######################################################################
5
5
 
6
6
   Init - Initialize the package library
39
39
      Cnf.Set("APT::Architecture",COMMON_CPU);
40
40
   else
41
41
      Cnf.Set("APT::Architecture",COMMON_OS "-" COMMON_CPU);
 
42
   Cnf.Set("APT::Build-Essential::", "build-essential");
42
43
   Cnf.Set("Dir","/");
43
44
   
44
45
   // State   
92
93
   
93
94
   if (Cnf.FindB("Debug::pkgInitConfig",false) == true)
94
95
      Cnf.Dump();
95
 
      
 
96
   
 
97
#ifdef APT_DOMAIN
 
98
   if (Cnf.Exists("Dir::Locale"))
 
99
   {  
 
100
      bindtextdomain(APT_DOMAIN,Cnf.FindDir("Dir::Locale").c_str());
 
101
      bindtextdomain(textdomain(0),Cnf.FindDir("Dir::Locale").c_str());
 
102
   }
 
103
#endif
 
104
   
96
105
   return true;
97
106
}
98
107
                                                                        /*}}}*/
123
132
      }
124
133
      
125
134
      if (Sys == 0)
126
 
         return _error->Error(_("Unable to determine a suitable system type"));
 
135
         return _error->Error(_("Unable to determine a suitable packaging system type"));
127
136
   }
128
137
   
129
138
   return Sys->Initialize(Cnf);