~ubuntu-branches/ubuntu/breezy/apt/breezy

« back to all changes in this revision

Viewing changes to apt-pkg/packagemanager.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: packagemanager.cc,v 1.28 2001/05/27 05:36:04 jgg Exp $
 
3
// $Id: packagemanager.cc,v 1.30 2003/04/27 03:04:15 doogie Exp $
4
4
/* ######################################################################
5
5
 
6
6
   Package Manager - Abstacts the package manager
133
133
   delete List;
134
134
   List = new pkgOrderList(&Cache);
135
135
   
136
 
   bool NoImmConfigure = _config->FindB("APT::Immediate-Configure",false);
 
136
   bool NoImmConfigure = !_config->FindB("APT::Immediate-Configure",true);
137
137
   
138
138
   // Generate the list of affected packages and sort it
139
139
   for (PkgIterator I = Cache.PkgBegin(); I.end() == false; I++)
483
483
 
484
484
            Bad = !SmartConfigure(Pkg);
485
485
         }
486
 
         
 
486
 
487
487
         /* If this or element did not match then continue on to the
488
 
            next or element until a matching element is found*/
 
488
            next or element until a matching element is found */
489
489
         if (Bad == true)
490
 
         {          
 
490
         {
 
491
            // This triggers if someone make a pre-depends/depend loop.
491
492
            if (Start == End)
492
 
               return _error->Error("Internal Error, Couldn't configure a pre-depend");
 
493
               return _error->Error("Couldn't configure pre-depend %s for %s, "
 
494
                                    "probably a dependency cycle.",
 
495
                                    End.TargetPkg().Name(),Pkg.Name());
493
496
            Start++;
494
497
         }
495
498
         else