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)  

pkgPackageManager Class Reference

#include <packagemanager.h>

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

Public Types

enum  OrderResult { Completed , Failed , Incomplete }
 

Public Member Functions

bool GetArchives (pkgAcquire *Owner, pkgSourceList *Sources, pkgRecords *Recs)
 
OrderResult DoInstall (APT::Progress::PackageManager *progress)
 
OrderResult DoInstallPreFork ()
 
OrderResult DoInstallPostFork (APT::Progress::PackageManager *progress)
 
bool FixMissing ()
 
std::set< std::string > GetDisappearedPackages ()
 returns all packages dpkg let disappear More...
 
 pkgPackageManager (pkgDepCache *Cache)
 
virtual ~pkgPackageManager ()
 

Static Public Attributes

static bool SigINTStop = false
 

Protected Member Functions

void ImmediateAdd (PkgIterator P, bool UseInstallVer, unsigned const int &Depth=0)
 
virtual OrderResult OrderInstall ()
 
bool CheckRConflicts (PkgIterator Pkg, DepIterator Dep, const char *Ver)
 
bool CheckRBreaks (PkgIterator const &Pkg, DepIterator Dep, const char *const Ver)
 
bool CreateOrderList ()
 
bool DepAlwaysTrue (DepIterator D) APT_PURE
 
bool ConfigureAll ()
 
bool SmartConfigure (PkgIterator Pkg, int const Depth) APT_MUSTCHECK
 
bool SmartUnPack (PkgIterator Pkg, bool const Immediate=true, int const Depth=0) APT_MUSTCHECK
 
bool SmartRemove (PkgIterator Pkg) APT_MUSTCHECK
 
bool EarlyRemove (PkgIterator Pkg, DepIterator const *const Dep) APT_MUSTCHECK
 
virtual bool Install (PkgIterator, std::string)
 
virtual bool Configure (PkgIterator)
 
virtual bool Remove (PkgIterator, bool=false)
 
virtual bool Go (APT::Progress::PackageManager *)
 
virtual void Reset ()
 

Protected Attributes

std::string * FileNames
 
pkgDepCacheCache
 
pkgOrderListList
 
bool Debug
 
bool NoImmConfigure
 
bool ImmConfigureAll
 
std::set< std::string > disappearedPkgs
 saves packages dpkg let disappear More...
 
OrderResult Res
 

Private Member Functions

APT_HIDDEN bool NonLoopingSmart (SmartAction const action, pkgCache::PkgIterator &Pkg, pkgCache::PkgIterator DepPkg, int const Depth, bool const PkgLoop, bool *const Bad, bool *const Changed) APT_MUSTCHECK
 

Private Attributes

void *const d
 

Friends

bool EIPP::OrderInstall (char const *const planner, pkgPackageManager *const PM, unsigned int const version, OpProgress *const Progress)
 
bool EIPP::ReadResponse (int const input, pkgPackageManager *const PM, OpProgress *const Progress)
 

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 47 of file packagemanager.h.

Member Enumeration Documentation

◆ OrderResult

Enumerator
Completed 
Failed 
Incomplete 

Definition at line 51 of file packagemanager.h.

Constructor & Destructor Documentation

◆ pkgPackageManager()

◆ ~pkgPackageManager()

~pkgPackageManager ( )
virtual

Definition at line 58 of file packagemanager.cc.

References FileNames, and List.

Member Function Documentation

◆ CheckRBreaks()

bool CheckRBreaks ( PkgIterator const &  Pkg,
DepIterator  Dep,
const char *const  Ver 
)
protected

◆ CheckRConflicts()

bool CheckRConflicts ( PkgIterator  Pkg,
DepIterator  Dep,
const char *  Ver 
)
protected

◆ Configure()

virtual bool Configure ( PkgIterator  )
inlineprotectedvirtual

Reimplemented in pkgSimulate, pkgDPkgPM, and PMOutput.

Definition at line 88 of file packagemanager.h.

Referenced by EIPP::ReadResponse(), and SmartConfigure().

◆ ConfigureAll()

◆ CreateOrderList()

◆ DepAlwaysTrue()

bool DepAlwaysTrue ( DepIterator  D)
protected

Definition at line 229 of file packagemanager.cc.

References Cache, pkgDepCache::DepInstall, and pkgDepCache::DepNow.

◆ DoInstall()

Definition at line 1165 of file packagemanager.cc.

References DoInstallPostFork(), DoInstallPreFork(), and Failed.

Referenced by InstallPackages().

◆ DoInstallPostFork()

Definition at line 1150 of file packagemanager.cc.

References Failed, Go(), and Res.

Referenced by DoInstall().

◆ DoInstallPreFork()

OrderResult DoInstallPreFork ( )
inline

Definition at line 113 of file packagemanager.h.

References EIPP::OrderInstall().

Referenced by DoInstall(), and main().

◆ EarlyRemove()

◆ FixMissing()

◆ GetArchives()

◆ GetDisappearedPackages()

std::set<std::string> GetDisappearedPackages ( )
inline

returns all packages dpkg let disappear

Definition at line 125 of file packagemanager.h.

◆ Go()

virtual bool Go ( APT::Progress::PackageManager )
inlineprotectedvirtual

Reimplemented in pkgDPkgPM, and pkgSimulate.

Definition at line 90 of file packagemanager.h.

Referenced by DoInstallPostFork().

◆ ImmediateAdd()

void ImmediateAdd ( PkgIterator  P,
bool  UseInstallVer,
unsigned const int &  Depth = 0 
)
protected

◆ Install()

virtual bool Install ( PkgIterator  ,
std::string   
)
inlineprotectedvirtual

Reimplemented in pkgSimulate, pkgDPkgPM, and PMOutput.

Definition at line 87 of file packagemanager.h.

Referenced by EIPP::ReadResponse(), and SmartUnPack().

◆ NonLoopingSmart()

bool NonLoopingSmart ( SmartAction const  action,
pkgCache::PkgIterator Pkg,
pkgCache::PkgIterator  DepPkg,
int const  Depth,
bool const  PkgLoop,
bool *const  Bad,
bool *const  Changed 
)
private

◆ OrderInstall()

◆ Remove()

virtual bool Remove ( PkgIterator  ,
bool  = false 
)
inlineprotectedvirtual

Reimplemented in pkgSimulate, pkgDPkgPM, and PMOutput.

Definition at line 89 of file packagemanager.h.

Referenced by EIPP::OrderInstall(), EIPP::ReadResponse(), and SmartRemove().

◆ Reset()

virtual void Reset ( )
inlineprotectedvirtual

Reimplemented in pkgDPkgPM.

Definition at line 92 of file packagemanager.h.

Referenced by OrderInstall().

◆ SmartConfigure()

◆ SmartRemove()

◆ SmartUnPack()

Friends And Related Function Documentation

◆ EIPP::OrderInstall

bool EIPP::OrderInstall ( char const *const  planner,
pkgPackageManager *const  PM,
unsigned int const  version,
OpProgress *const  Progress 
)
friend

◆ EIPP::ReadResponse

bool EIPP::ReadResponse ( int const  input,
pkgPackageManager *const  PM,
OpProgress *const  Progress 
)
friend

Member Data Documentation

◆ Cache

◆ d

void* const d
private

Definition at line 131 of file packagemanager.h.

◆ Debug

◆ disappearedPkgs

std::set<std::string> disappearedPkgs
protected

saves packages dpkg let disappear

This way APT can retreat from trying to configure these packages later on and a front-end can choose to display a notice to inform the user about these disappears.

Definition at line 68 of file packagemanager.h.

Referenced by pkgDPkgPM::CloseLog(), pkgDPkgPM::Go(), and pkgDPkgPM::handleDisappearAction().

◆ FileNames

◆ ImmConfigureAll

bool ImmConfigureAll
protected

Definition at line 60 of file packagemanager.h.

Referenced by ConfigureAll(), CreateOrderList(), OrderInstall(), and pkgPackageManager().

◆ List

◆ NoImmConfigure

bool NoImmConfigure
protected

Definition at line 59 of file packagemanager.h.

Referenced by CreateOrderList(), and pkgPackageManager().

◆ Res

OrderResult Res
protected

Definition at line 95 of file packagemanager.h.

Referenced by DoInstallPostFork(), and EarlyRemove().

◆ SigINTStop

bool SigINTStop = false
static

Definition at line 52 of file packagemanager.h.

Referenced by pkgDPkgPM::Go(), and SigINT().


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