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)  

pkgDepCache Class Reference

#include <depcache.h>

Inheritance diagram for pkgDepCache:
[legend]
Collaboration diagram for pkgDepCache:
[legend]

Classes

class  ActionGroup
 Represents an active action group. More...
 
class  DefaultRootSetFunc
 Returns true for packages matching a regular expression in APT::NeverAutoRemove. More...
 
class  InRootSetFunc
 An arbitrary predicate on packages. More...
 
class  Policy
 
struct  Private
 
struct  StateCache
 

Public Types

enum  DepFlags {
  DepNow = (1 << 0) , DepInstall = (1 << 1) , DepCVer = (1 << 2) , DepGNow = (1 << 3) ,
  DepGInstall = (1 << 4) , DepGCVer = (1 << 5)
}
 
enum  DepStateFlags {
  DepNowPolicy = (1 << 0) , DepNowMin = (1 << 1) , DepInstPolicy = (1 << 2) , DepInstMin = (1 << 3) ,
  DepCandPolicy = (1 << 4) , DepCandMin = (1 << 5)
}
 
enum  InternalFlags { AutoKept = (1 << 0) , Purge = (1 << 1) , ReInstall = (1 << 2) , Protected = (1 << 3) }
 
enum  VersionTypes { NowVersion , InstallVersion , CandidateVersion }
 
enum  ModeList { ModeDelete = 0 , ModeKeep = 1 , ModeInstall = 2 , ModeGarbage = 3 }
 

Public Member Functions

void BuildGroupOrs (VerIterator const &V)
 
void UpdateVerState (PkgIterator const &Pkg)
 
 operator pkgCache & ()
 
HeaderHead ()
 
GrpIterator GrpBegin ()
 
PkgIterator PkgBegin ()
 
GrpIterator FindGrp (APT::StringView Name)
 
PkgIterator FindPkg (APT::StringView Name)
 
PkgIterator FindPkg (APT::StringView Name, APT::StringView Arch)
 
pkgCacheGetCache ()
 
pkgVersioningSystemVS ()
 
bool IsImportantDep (DepIterator Dep) const
 
PolicyGetPolicy ()
 
StateCacheoperator[] (PkgIterator const &I)
 
StateCacheoperator[] (PkgIterator const &I) const
 
unsigned char & operator[] (DepIterator const &I)
 
unsigned char const & operator[] (DepIterator const &I) const
 
virtual InRootSetFuncGetRootSetFunc ()
 
InRootSetFuncGetCachedRootSetFunc () APT_HIDDEN
 
virtual bool MarkFollowsRecommends ()
 
virtual bool MarkFollowsSuggests ()
 
bool MarkAndSweep (InRootSetFunc &rootFunc)
 Update the Marked and Garbage fields of all packages. More...
 
bool MarkAndSweep ()
 

Protected Member Functions

bool CheckDep (DepIterator const &Dep, int const Type, PkgIterator &Res)
 
bool CheckDep (DepIterator const &Dep, int const Type)
 
unsigned char DependencyState (DepIterator const &D)
 
unsigned char VersionState (DepIterator D, unsigned char const Check, unsigned char const SetMin, unsigned char const SetPolicy) const
 
void Update (DepIterator Dep)
 
void Update (PkgIterator const &P)
 
void AddSizes (const PkgIterator &Pkg, bool const Invert=false)
 
void RemoveSizes (const PkgIterator &Pkg)
 
void AddStates (const PkgIterator &Pkg, bool const Invert=false)
 
void RemoveStates (const PkgIterator &Pkg)
 

Protected Attributes

pkgCacheCache
 
StateCachePkgState
 
unsigned char * DepState
 
signed long long iUsrSize
 
unsigned long long iDownloadSize
 
unsigned long iInstCount
 
unsigned long iDelCount
 
unsigned long iKeepCount
 
unsigned long iBrokenCount
 
unsigned long iPolicyBrokenCount
 
unsigned long iBadCount
 
bool DebugMarker
 
bool DebugAutoInstall
 
PolicydelLocalPolicy
 
PolicyLocalPolicy
 

Private Member Functions

APT_HIDDEN void MarkPackage (const pkgCache::PkgIterator &pkg, const pkgCache::VerIterator &ver, bool const &follow_recommends, bool const &follow_suggests, const char *reason)
 Mark a single package and all its unmarked important dependencies during mark-and-sweep. More...
 
bool MarkRequired (InRootSetFunc &rootFunc)
 Update the Marked field of all packages. More...
 
bool Sweep ()
 Set the StateCache::Garbage flag on all packages that should be removed. More...
 

Private Attributes

int group_level
 

Friends

class ActionGroup
 

State Manipulators

Private *const d
 
APT_HIDDEN bool MarkInstall_StateChange (PkgIterator const &Pkg, bool AutoInst, bool FromUser)
 
APT_HIDDEN bool MarkInstall_DiscardInstall (PkgIterator const &Pkg)
 
APT_HIDDEN void PerformDependencyPass (OpProgress *const Prog)
 
bool MarkKeep (PkgIterator const &Pkg, bool Soft=false, bool FromUser=true, unsigned long Depth=0)
 
bool MarkDelete (PkgIterator const &Pkg, bool MarkPurge=false, unsigned long Depth=0, bool FromUser=true)
 
bool MarkInstall (PkgIterator const &Pkg, bool AutoInst=true, unsigned long Depth=0, bool FromUser=true, bool ForceImportantDeps=false)
 
void MarkProtected (PkgIterator const &Pkg)
 
void SetReInstall (PkgIterator const &Pkg, bool To)
 
pkgCache::VerIterator GetCandidateVersion (pkgCache::PkgIterator const &Pkg)
 
void SetCandidateVersion (VerIterator TargetVer)
 
bool SetCandidateRelease (pkgCache::VerIterator TargetVer, std::string const &TargetRel)
 
bool SetCandidateRelease (pkgCache::VerIterator TargetVer, std::string const &TargetRel, std::list< std::pair< pkgCache::VerIterator, pkgCache::VerIterator > > &Changed)
 
void MarkAuto (const PkgIterator &Pkg, bool Auto)
 
virtual bool IsInstallOk (const PkgIterator &Pkg, bool AutoInst=true, unsigned long Depth=0, bool FromUser=true)
 
virtual bool IsDeleteOk (const PkgIterator &Pkg, bool MarkPurge=false, unsigned long Depth=0, bool FromUser=true)
 
bool readStateFile (OpProgress *const prog)
 
bool writeStateFile (OpProgress *const prog, bool const InstalledOnly=true)
 
signed long long UsrSize ()
 
unsigned long long DebSize ()
 
unsigned long DelCount ()
 
unsigned long KeepCount ()
 
unsigned long InstCount ()
 
unsigned long BrokenCount ()
 
unsigned long PolicyBrokenCount ()
 
unsigned long BadCount ()
 
bool Init (OpProgress *const Prog)
 
void Update (OpProgress *const Prog=0)
 
 pkgDepCache (pkgCache *const Cache, Policy *const Plcy=0)
 
virtual ~pkgDepCache ()
 
bool CheckConsistency (char const *const msgtag="")
 
bool IsInstallOkMultiArchSameVersionSynced (PkgIterator const &Pkg, bool const AutoInst, unsigned long const Depth, bool const FromUser)
 
bool IsInstallOkDependenciesSatisfiableByCandidates (PkgIterator const &Pkg, bool const AutoInst, unsigned long const Depth, bool const FromUser)
 
bool IsDeleteOkProtectInstallRequests (PkgIterator const &Pkg, bool const rPurge, unsigned long const Depth, bool const FromUser)
 

Additional Inherited Members

- Protected Types inherited from pkgCache< Str, Itr >::Namespace
typedef pkgCache::GrpIterator GrpIterator
 
typedef pkgCache::PkgIterator PkgIterator
 
typedef pkgCache::VerIterator VerIterator
 
typedef pkgCache::DescIterator DescIterator
 
typedef pkgCache::DepIterator DepIterator
 
typedef pkgCache::PrvIterator PrvIterator
 
typedef pkgCache::RlsFileIterator RlsFileIterator
 
typedef pkgCache::PkgFileIterator PkgFileIterator
 
typedef pkgCache::VerFileIterator VerFileIterator
 
typedef pkgCache::Version Version
 
typedef pkgCache::Description Description
 
typedef pkgCache::Package Package
 
typedef pkgCache::Header Header
 
typedef pkgCache::Dep Dep
 
typedef pkgCache::Flag Flag
 

Detailed Description

Definition at line 61 of file depcache.h.

Member Enumeration Documentation

◆ DepFlags

enum DepFlags
Enumerator
DepNow 
DepInstall 
DepCVer 
DepGNow 
DepGInstall 
DepGCVer 

Definition at line 128 of file depcache.h.

◆ DepStateFlags

Enumerator
DepNowPolicy 
DepNowMin 
DepInstPolicy 
DepInstMin 
DepCandPolicy 
DepCandMin 

Definition at line 132 of file depcache.h.

◆ InternalFlags

Enumerator
AutoKept 
Purge 
ReInstall 
Protected 

Definition at line 137 of file depcache.h.

◆ ModeList

enum ModeList
Enumerator
ModeDelete 
ModeKeep 
ModeInstall 
ModeGarbage 

Definition at line 140 of file depcache.h.

◆ VersionTypes

Enumerator
NowVersion 
InstallVersion 
CandidateVersion 

Definition at line 139 of file depcache.h.

Constructor & Destructor Documentation

◆ pkgDepCache()

pkgDepCache ( pkgCache *const  Cache,
Policy *const  Plcy = 0 
)

◆ ~pkgDepCache()

~pkgDepCache ( )
virtual

Definition at line 136 of file depcache.cc.

References d, delLocalPolicy, DepState, and PkgState.

Referenced by MarkInstall_StateChange().

Member Function Documentation

◆ AddSizes()

◆ AddStates()

◆ BadCount()

unsigned long BadCount ( )
inline

Definition at line 499 of file depcache.h.

Referenced by CheckConsistency(), and Stats().

◆ BrokenCount()

◆ BuildGroupOrs()

void BuildGroupOrs ( VerIterator const &  V)

Definition at line 648 of file depcache.cc.

References DepState, and pkgCache< Str, Itr >::Dep::Or.

Referenced by Update().

◆ CheckConsistency()

◆ CheckDep() [1/2]

bool CheckDep ( DepIterator const &  Dep,
int const  Type 
)
inlineprotected

Definition at line 328 of file depcache.h.

◆ CheckDep() [2/2]

◆ DebSize()

unsigned long long DebSize ( )
inline

Definition at line 493 of file depcache.h.

◆ DelCount()

unsigned long DelCount ( )
inline

Definition at line 494 of file depcache.h.

Referenced by CheckConsistency(), CacheFile::CheckDeps(), and Stats().

◆ DependencyState()

unsigned char DependencyState ( DepIterator const &  D)
protected

Definition at line 713 of file depcache.cc.

References CandidateVersion, CheckDep(), DepCVer, DepInstall, DepNow, InstallVersion, and NowVersion.

Referenced by PerformDependencyPass(), and Update().

◆ FindGrp()

GrpIterator FindGrp ( APT::StringView  Name)
inline

Definition at line 357 of file depcache.h.

Referenced by pkgDPkgPM::ProcessDpkgStatusLine(), and EIPP::WriteScenario().

◆ FindPkg() [1/2]

◆ FindPkg() [2/2]

PkgIterator FindPkg ( APT::StringView  Name,
APT::StringView  Arch 
)
inline

Definition at line 359 of file depcache.h.

◆ GetCache()

pkgCache& GetCache ( )
inline

Definition at line 361 of file depcache.h.

References pkgCache< Str, Itr >::Cache().

Referenced by GetRootSetFunc(), EDSP::ReadResponse(), and EIPP::ReadResponse().

◆ GetCachedRootSetFunc()

pkgDepCache::InRootSetFunc * GetCachedRootSetFunc ( )

This should return const really - do not delete.

Definition at line 2187 of file depcache.cc.

References d, GetRootSetFunc(), and pkgDepCache::Private::inRootSetFunc.

Referenced by MarkAndSweep().

◆ GetCandidateVersion()

pkgCache::VerIterator GetCandidateVersion ( pkgCache::PkgIterator const &  Pkg)
Returns
'the' candidate version of a package

The version returned is the version previously set explicitly via SetCandidate* methods like SetCandidateVersion or if there wasn't one set the version as chosen via Policy.

Parameters
Pkgis the package to return the candidate for

Definition at line 1863 of file depcache.cc.

References pkgDepCache::StateCache::CandidateVerIter(), and PkgState.

Referenced by pkgProblemResolver::ResolveInternal(), SkipUnavailableVersions(), pkgDPkgPM::WriteApportReport(), WriteScenarioEDSPVersion(), and WriteSolution().

◆ GetPolicy()

Policy& GetPolicy ( )
inline

Definition at line 365 of file depcache.h.

Referenced by WriteScenarioEDSPVersion().

◆ GetRootSetFunc()

pkgDepCache::InRootSetFunc * GetRootSetFunc ( )
virtual
Returns
A function identifying packages in the root set other than manually installed packages and essential packages, or NULL if an error occurs.
Todo:
Is this the best place for this function? Perhaps the settings for mark-and-sweep should be stored in a single external class?

Definition at line 2175 of file depcache.cc.

References GetCache(), and Configuration::MatchAgainstConfig::wasConstructedSuccessfully().

Referenced by GetCachedRootSetFunc().

◆ GrpBegin()

GrpIterator GrpBegin ( )
inline

Definition at line 355 of file depcache.h.

Referenced by CacheSetHelper::PackageFromTask(), and pkgDistUpgrade().

◆ Head()

◆ Init()

◆ InstCount()

unsigned long InstCount ( )
inline

Definition at line 496 of file depcache.h.

Referenced by CheckConsistency(), and CacheFile::CheckDeps().

◆ IsDeleteOk()

bool IsDeleteOk ( const PkgIterator Pkg,
bool  MarkPurge = false,
unsigned long  Depth = 0,
bool  FromUser = true 
)
virtual
Returns
true if it's OK for MarkDelete to remove the given package.

The default implementation simply calls all IsDeleteOk* method mentioned below, see also IsInstallOk.

The parameters are the same as in the calling MarkDelete:

Parameters
Pkgthe package that MarkDelete wants to remove.
MarkPurgeshould we purge instead of "only" remove?
Depthrecursive deep of this Marker call
FromUserwas the remove requested by the user?

Definition at line 1072 of file depcache.cc.

References IsDeleteOkProtectInstallRequests().

Referenced by MarkDelete(), and MarkInstall_MarkDeleteForNotUpgradeable().

◆ IsDeleteOkProtectInstallRequests()

bool IsDeleteOkProtectInstallRequests ( PkgIterator const &  Pkg,
bool const  rPurge,
unsigned long const  Depth,
bool const  FromUser 
)
protected

◆ IsImportantDep()

◆ IsInstallOk()

bool IsInstallOk ( const PkgIterator Pkg,
bool  AutoInst = true,
unsigned long  Depth = 0,
bool  FromUser = true 
)
virtual
Returns
true if it's OK for MarkInstall to install the given package.

The default implementation simply calls all IsInstallOk* method mentioned below.

Overriding implementations should use the hold-state-flag to cache results from previous checks of this package - if possible.

The parameters are the same as in the calling MarkInstall:

Parameters
Pkgthe package that MarkInstall wants to install.
AutoInstinstall this and all its dependencies
Depthrecursive deep of this Marker call
FromUserwas the install requested by the user?

Definition at line 1718 of file depcache.cc.

References IsInstallOkDependenciesSatisfiableByCandidates(), and IsInstallOkMultiArchSameVersionSynced().

Referenced by MarkInstall().

◆ IsInstallOkDependenciesSatisfiableByCandidates()

bool IsInstallOkDependenciesSatisfiableByCandidates ( PkgIterator const &  Pkg,
bool const  AutoInst,
unsigned long const  Depth,
bool const  FromUser 
)
protected

◆ IsInstallOkMultiArchSameVersionSynced()

bool IsInstallOkMultiArchSameVersionSynced ( PkgIterator const &  Pkg,
bool const  AutoInst,
unsigned long const  Depth,
bool const  FromUser 
)
protected

◆ KeepCount()

unsigned long KeepCount ( )
inline

Definition at line 495 of file depcache.h.

Referenced by CheckConsistency(), and Stats().

◆ MarkAndSweep() [1/2]

bool MarkAndSweep ( )

Definition at line 2403 of file depcache.cc.

References GetCachedRootSetFunc().

◆ MarkAndSweep() [2/2]

bool MarkAndSweep ( InRootSetFunc rootFunc)

Update the Marked and Garbage fields of all packages.

This routine is implicitly invoked after all state manipulators and when an ActionGroup is destroyed. It invokes the private MarkRequired() and Sweep() to do its dirty work.

Parameters
rootFuncA predicate that returns true for packages that should be added to the root set.

Definition at line 2399 of file depcache.cc.

References MarkRequired(), and Sweep().

◆ MarkAuto()

void MarkAuto ( const PkgIterator Pkg,
bool  Auto 
)

Set the "is automatically installed" flag of Pkg.

Definition at line 2066 of file depcache.cc.

References pkgCache< Str, Itr >::Flag::Auto, pkgDepCache::StateCache::Flags, and PkgState.

Referenced by DoAuto(), DoMarkAuto(), DoMinimize(), MarkDelete(), MarkInstall(), and TryToInstall::operator()().

◆ MarkDelete()

◆ MarkFollowsRecommends()

bool MarkFollowsRecommends ( )
virtual
Returns
true if the garbage collector should follow recommendations.

Definition at line 2194 of file depcache.cc.

References _config, and Configuration::FindB().

Referenced by MarkRequired().

◆ MarkFollowsSuggests()

bool MarkFollowsSuggests ( )
virtual
Returns
true if the garbage collector should follow suggestions.

Definition at line 2199 of file depcache.cc.

References _config, and Configuration::FindB().

Referenced by MarkRequired().

◆ MarkInstall()

bool MarkInstall ( PkgIterator const &  Pkg,
bool  AutoInst = true,
unsigned long  Depth = 0,
bool  FromUser = true,
bool  ForceImportantDeps = false 
)

◆ MarkInstall_DiscardInstall()

◆ MarkInstall_StateChange()

bool MarkInstall_StateChange ( pkgCache::PkgIterator const &  Pkg,
bool  AutoInst,
bool  FromUser 
)
private

◆ MarkKeep()

◆ MarkPackage()

void MarkPackage ( const pkgCache::PkgIterator pkg,
const pkgCache::VerIterator ver,
bool const &  follow_recommends,
bool const &  follow_suggests,
const char *  reason 
)
private

Mark a single package and all its unmarked important dependencies during mark-and-sweep.

Recursively invokes itself to mark all dependencies of the package.

Parameters
pkgThe package to mark.
verThe version of the package that is to be marked.
follow_recommendsIf true, recommendations of the package will be recursively marked.
follow_suggestsIf true, suggestions of the package will be recursively marked.
reasonThe reason why the package is being marked. (Used in logging when Debug::pkgAutoRemove is set.)

Definition at line 2276 of file depcache.cc.

References _config, VersionContainer< Container >::begin(), pkgCache< Str, Itr >::Dep::Depends, VersionContainer< Container >::empty(), VersionContainer< Container >::end(), VersionContainer< Container >::erase(), Configuration::FindB(), pkgDepCache::StateCache::Install(), pkgDepCache::StateCache::InstVerIter(), IsPkgInBoringState(), pkgDepCache::StateCache::Marked, PkgState, pkgCache< Str, Itr >::Dep::PreDepends, pkgCache< Str, Itr >::Dep::Recommends, VersionContainer< Container >::size(), pkgCache< Str, Itr >::Dep::Suggests, and pkgCache< Str, Itr >::VerIterator().

Referenced by MarkRequired().

◆ MarkProtected()

◆ MarkRequired()

bool MarkRequired ( InRootSetFunc rootFunc)
private

Update the Marked field of all packages.

Each package's StateCache::Marked field will be set to true if and only if it can be reached from the root set. By default, the root set consists of the set of manually installed or essential packages, but it can be extended using the parameter #rootFunc.

Parameters
rootFuncA callback that can be used to add extra packages to the root set.
Returns
false if an error occurred.

Definition at line 2219 of file depcache.cc.

References _config, pkgCache< Str, Itr >::Flag::Auto, DebugMarker, pkgCache< Str, Itr >::Flag::Essential, Configuration::Find(), Configuration::FindB(), pkgDepCache::StateCache::Flags, pkgDepCache::StateCache::Garbage, Head(), pkgCache< Str, Itr >::Flag::Important, pkgDepCache::InRootSetFunc::InRootSet(), pkgDepCache::StateCache::Install(), pkgDepCache::StateCache::InstVerIter(), IsModeChangeOk(), IsPkgInBoringState(), pkgDepCache::StateCache::Marked, MarkFollowsRecommends(), MarkFollowsSuggests(), MarkPackage(), ModeGarbage, pkgCache< Str, Itr >::Header::PackageCount, PkgBegin(), PkgState, and pkgCache< Str, Itr >::State::Required.

Referenced by MarkAndSweep().

◆ operator pkgCache &()

operator pkgCache & ( )
inline

Definition at line 353 of file depcache.h.

References pkgCache< Str, Itr >::Cache().

◆ operator[]() [1/4]

unsigned char& operator[] ( DepIterator const &  I)
inline

Definition at line 370 of file depcache.h.

References I.

◆ operator[]() [2/4]

unsigned char const& operator[] ( DepIterator const &  I) const
inline

Definition at line 371 of file depcache.h.

References I.

◆ operator[]() [3/4]

StateCache& operator[] ( PkgIterator const &  I)
inline

Definition at line 368 of file depcache.h.

References I.

◆ operator[]() [4/4]

StateCache& operator[] ( PkgIterator const &  I) const
inline

Definition at line 369 of file depcache.h.

References I.

◆ PerformDependencyPass()

◆ PkgBegin()

◆ PolicyBrokenCount()

unsigned long PolicyBrokenCount ( )
inline

Definition at line 498 of file depcache.h.

Referenced by CheckConsistency(), and CacheFile::CheckDeps().

◆ readStateFile()

◆ RemoveSizes()

void RemoveSizes ( const PkgIterator Pkg)
inlineprotected

◆ RemoveStates()

void RemoveStates ( const PkgIterator Pkg)
inlineprotected

◆ SetCandidateRelease() [1/2]

bool SetCandidateRelease ( pkgCache::VerIterator  TargetVer,
std::string const &  TargetRel 
)

◆ SetCandidateRelease() [2/2]

bool SetCandidateRelease ( pkgCache::VerIterator  TargetVer,
std::string const &  TargetRel,
std::list< std::pair< pkgCache::VerIterator, pkgCache::VerIterator > > &  Changed 
)

Set the candidate version for dependencies too if needed.

Sets not only the candidate version as SetCandidateVersion does, but walks also down the dependency tree and checks if it is required to set the candidate of the dependency to a version from the given release, too.

Parameters
TargetVernew candidate version of the package
TargetReltry to switch to this release if needed
[out]Changeda list of pairs consisting of the old version of the changed package and the version which required the switch of this dependency
Returns
true if the switch was successful, false otherwise

Definition at line 1906 of file depcache.cc.

References pkgDepCache::StateCache::CandidateVerIter(), DepCandMin, DepCandPolicy, pkgCache< Str, Itr >::Dep::Depends, DepInstall, pkgCache< Str, Itr >::DepIterator(), pkgVersionMatch::Find(), IsImportantDep(), pkgCache< Str, Itr >::Dep::Or, pkgCache< Str, Itr >::PkgIterator(), PkgState, pkgCache< Str, Itr >::Dep::PreDepends, pkgCache< Str, Itr >::PrvIterator(), pkgCache< Str, Itr >::Dep::Recommends, pkgVersionMatch::Release, SetCandidateRelease(), SetCandidateVersion(), pkgCache< Str, Itr >::Dep::Suggests, pkgCache< Str, Itr >::VerIterator(), and VersionState().

◆ SetCandidateVersion()

◆ SetReInstall()

◆ Sweep()

bool Sweep ( )
private

Set the StateCache::Garbage flag on all packages that should be removed.

Packages that were not marked by the last call to MarkRequired are tested to see whether they are actually garbage. If so, they are marked as such.

Returns
false if an error occurred.

Definition at line 2372 of file depcache.cc.

References _config, Configuration::FindB(), pkgDepCache::StateCache::Garbage, pkgDepCache::StateCache::Install(), pkgDepCache::StateCache::Marked, PkgBegin(), PkgState, and pkgCache< Str, Itr >::State::Required.

Referenced by MarkAndSweep().

◆ Update() [1/3]

◆ Update() [2/3]

void Update ( OpProgress *const  Prog = 0)

Definition at line 812 of file depcache.cc.

References PerformDependencyPass(), and readStateFile().

◆ Update() [3/3]

void Update ( PkgIterator const &  P)
protected

◆ UpdateVerState()

◆ UsrSize()

signed long long UsrSize ( )
inline

Definition at line 492 of file depcache.h.

Referenced by CheckConsistency().

◆ VersionState()

unsigned char VersionState ( DepIterator  D,
unsigned char const  Check,
unsigned char const  SetMin,
unsigned char const  SetPolicy 
) const
protected

Definition at line 680 of file depcache.cc.

References DepState, and IsImportantDep().

Referenced by SetCandidateRelease(), and UpdateVerState().

◆ VS()

◆ writeStateFile()

Friends And Related Function Documentation

◆ ActionGroup

friend class ActionGroup
friend

Definition at line 300 of file depcache.h.

Member Data Documentation

◆ Cache

pkgCache* Cache
protected

Definition at line 305 of file depcache.h.

Referenced by readStateFile(), pkgDepCache::StateCache::Update(), and writeStateFile().

◆ d

Private* const d
private

Definition at line 523 of file depcache.h.

Referenced by GetCachedRootSetFunc(), and ~pkgDepCache().

◆ DebugAutoInstall

bool DebugAutoInstall
protected

◆ DebugMarker

◆ delLocalPolicy

Policy* delLocalPolicy
protected

Definition at line 323 of file depcache.h.

Referenced by pkgDepCache(), and ~pkgDepCache().

◆ DepState

◆ group_level

int group_level
private

The number of open "action groups"; certain post-action operations are suppressed if this number is > 0.

Definition at line 298 of file depcache.h.

Referenced by pkgDepCache::ActionGroup::ActionGroup().

◆ iBadCount

unsigned long iBadCount
protected

Definition at line 318 of file depcache.h.

Referenced by AddStates(), CheckConsistency(), and PerformDependencyPass().

◆ iBrokenCount

unsigned long iBrokenCount
protected

Definition at line 316 of file depcache.h.

Referenced by AddStates(), CheckConsistency(), and PerformDependencyPass().

◆ iDelCount

unsigned long iDelCount
protected

Definition at line 314 of file depcache.h.

Referenced by AddStates(), CheckConsistency(), and PerformDependencyPass().

◆ iDownloadSize

unsigned long long iDownloadSize
protected

Stores how much we need to download to get the packages

Definition at line 312 of file depcache.h.

Referenced by AddSizes(), CheckConsistency(), and PerformDependencyPass().

◆ iInstCount

unsigned long iInstCount
protected

Definition at line 313 of file depcache.h.

Referenced by AddStates(), CheckConsistency(), and PerformDependencyPass().

◆ iKeepCount

unsigned long iKeepCount
protected

Definition at line 315 of file depcache.h.

Referenced by AddStates(), CheckConsistency(), and PerformDependencyPass().

◆ iPolicyBrokenCount

unsigned long iPolicyBrokenCount
protected

Definition at line 317 of file depcache.h.

Referenced by AddStates(), CheckConsistency(), and PerformDependencyPass().

◆ iUsrSize

signed long long iUsrSize
protected

Stores the space changes after installation

Definition at line 310 of file depcache.h.

Referenced by AddSizes(), CheckConsistency(), and PerformDependencyPass().

◆ LocalPolicy

Policy* LocalPolicy
protected

Definition at line 324 of file depcache.h.

Referenced by Init(), and pkgDepCache().

◆ PkgState


The documentation for this class was generated from the following files: