apt  2.2.4
About: Apt (Advanced Package Tool) is a management system for software packages (Debian/Ubuntu). Release series 2.2.
  Fossies Dox: apt-2.2.4.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

depcache.cc File Reference
#include <config.h>
#include <apt-pkg/algorithms.h>
#include <apt-pkg/aptconfiguration.h>
#include <apt-pkg/cachefile.h>
#include <apt-pkg/cacheset.h>
#include <apt-pkg/configuration.h>
#include <apt-pkg/depcache.h>
#include <apt-pkg/error.h>
#include <apt-pkg/fileutl.h>
#include <apt-pkg/macros.h>
#include <apt-pkg/pkgcache.h>
#include <apt-pkg/prettyprinters.h>
#include <apt-pkg/progress.h>
#include <apt-pkg/strutl.h>
#include <apt-pkg/tagfile.h>
#include <apt-pkg/version.h>
#include <apt-pkg/versionmatch.h>
#include <algorithm>
#include <iostream>
#include <iterator>
#include <list>
#include <set>
#include <string>
#include <utility>
#include <vector>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <apti18n.h>
Include dependency graph for depcache.cc:

Go to the source code of this file.

Classes

class  DefaultRootSetFunc2
 Returns true for packages matching a regular expression in APT::NeverAutoRemove. More...
 
struct  pkgDepCache::Private
 
struct  CompareProviders
 

Macros

#define APT_CONSISTENCY_CHECK(VAR, STR)
 

Functions

static bool ConfigValueInSubTree (const char *SubTree, const char *needle)
 
static char const * PrintMode (char const mode)
 
static bool IsModeChangeOk (pkgDepCache &Cache, pkgDepCache::ModeList const mode, pkgCache::PkgIterator const &Pkg, unsigned long const Depth, bool const FromUser, bool const DebugMarker)
 
static bool MarkInstall_DiscardCandidate (pkgDepCache &Cache, pkgCache::PkgIterator const &Pkg)
 
static bool MarkInstall_CollectDependencies (pkgDepCache const &Cache, pkgCache::VerIterator const &PV, std::vector< pkgCache::DepIterator > &toInstall, std::vector< pkgCache::DepIterator > &toRemove)
 
static APT::VersionVector getAllPossibleSolutions (pkgDepCache &Cache, pkgCache::DepIterator Start, pkgCache::DepIterator const &End, APT::CacheSetHelper::VerSelector const selector, bool const sorted)
 
static bool MarkInstall_MarkDeleteForNotUpgradeable (pkgDepCache &Cache, bool const DebugAutoInstall, pkgCache::VerIterator const &PV, unsigned long const Depth, pkgCache::PkgIterator const &Pkg, bool const propagateProctected, APT::PackageVector &delayedRemove)
 
static bool MarkInstall_RemoveConflictsIfNotUpgradeable (pkgDepCache &Cache, bool const DebugAutoInstall, pkgCache::VerIterator const &PV, unsigned long Depth, std::vector< pkgCache::DepIterator > &toRemove, APT::PackageVector &toUpgrade, APT::PackageVector &delayedRemove, bool const propagateProctected, bool const FromUser)
 
static bool MarkInstall_UpgradeOrRemoveConflicts (pkgDepCache &Cache, bool const DebugAutoInstall, unsigned long Depth, bool const ForceImportantDeps, APT::PackageVector &toUpgrade, bool const propagateProctected, bool const FromUser)
 
static bool MarkInstall_InstallDependencies (pkgDepCache &Cache, bool const DebugAutoInstall, bool const DebugMarker, pkgCache::PkgIterator const &Pkg, unsigned long Depth, bool const ForceImportantDeps, std::vector< pkgCache::DepIterator > &toInstall, APT::PackageVector *const toMoveAuto, bool const propagateProctected, bool const FromUser)
 
static bool IsPkgInBoringState (pkgCache::PkgIterator const &Pkg, pkgDepCache::StateCache const *const PkgState)
 

Macro Definition Documentation

◆ APT_CONSISTENCY_CHECK

#define APT_CONSISTENCY_CHECK (   VAR,
  STR 
)
Value:
if (orig##VAR != i##VAR) \
_error->Warning("Internal Inconsistency in pkgDepCache: " #VAR " " STR " vs " STR " (%s)", i##VAR, orig##VAR, msgtag)

Function Documentation

◆ ConfigValueInSubTree()

static bool ConfigValueInSubTree ( const char *  SubTree,
const char *  needle 
)
static

◆ getAllPossibleSolutions()

◆ IsModeChangeOk()

static bool IsModeChangeOk ( pkgDepCache Cache,
pkgDepCache::ModeList const  mode,
pkgCache::PkgIterator const &  Pkg,
unsigned long const  Depth,
bool const  FromUser,
bool const  DebugMarker 
)
static

◆ IsPkgInBoringState()

static bool IsPkgInBoringState ( pkgCache::PkgIterator const &  Pkg,
pkgDepCache::StateCache const *const  PkgState 
)
static

◆ MarkInstall_CollectDependencies()

static bool MarkInstall_CollectDependencies ( pkgDepCache const &  Cache,
pkgCache::VerIterator const &  PV,
std::vector< pkgCache::DepIterator > &  toInstall,
std::vector< pkgCache::DepIterator > &  toRemove 
)
static

◆ MarkInstall_DiscardCandidate()

static bool MarkInstall_DiscardCandidate ( pkgDepCache Cache,
pkgCache::PkgIterator const &  Pkg 
)
static

◆ MarkInstall_InstallDependencies()

static bool MarkInstall_InstallDependencies ( pkgDepCache Cache,
bool const  DebugAutoInstall,
bool const  DebugMarker,
pkgCache::PkgIterator const &  Pkg,
unsigned long  Depth,
bool const  ForceImportantDeps,
std::vector< pkgCache::DepIterator > &  toInstall,
APT::PackageVector *const  toMoveAuto,
bool const  propagateProctected,
bool const  FromUser 
)
static

◆ MarkInstall_MarkDeleteForNotUpgradeable()

static bool MarkInstall_MarkDeleteForNotUpgradeable ( pkgDepCache Cache,
bool const  DebugAutoInstall,
pkgCache::VerIterator const &  PV,
unsigned long const  Depth,
pkgCache::PkgIterator const &  Pkg,
bool const  propagateProctected,
APT::PackageVector delayedRemove 
)
static

◆ MarkInstall_RemoveConflictsIfNotUpgradeable()

static bool MarkInstall_RemoveConflictsIfNotUpgradeable ( pkgDepCache Cache,
bool const  DebugAutoInstall,
pkgCache::VerIterator const &  PV,
unsigned long  Depth,
std::vector< pkgCache::DepIterator > &  toRemove,
APT::PackageVector toUpgrade,
APT::PackageVector delayedRemove,
bool const  propagateProctected,
bool const  FromUser 
)
static

◆ MarkInstall_UpgradeOrRemoveConflicts()

static bool MarkInstall_UpgradeOrRemoveConflicts ( pkgDepCache Cache,
bool const  DebugAutoInstall,
unsigned long  Depth,
bool const  ForceImportantDeps,
APT::PackageVector toUpgrade,
bool const  propagateProctected,
bool const  FromUser 
)
static

◆ PrintMode()

static char const* PrintMode ( char const  mode)
static