libapt-pkg-dev  v0.9.7.5ubuntu5.4
Debian+Ubuntu APT Package Management
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pkgPackageManager Class Reference

#include <packagemanager.h>

Inheritance diagram for pkgPackageManager:
Collaboration diagram for pkgPackageManager:

Public Types

enum  OrderResult {
  Completed,
  Failed,
  Incomplete
}
 

Public Member Functions

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

Static Public Attributes

static bool SigINTStop
 

Protected Types

typedef pkgCache::Dep Dep
 
typedef pkgCache::DepIterator DepIterator
 
typedef pkgCache::DescIterator DescIterator
 
typedef pkgCache::Description Description
 
typedef pkgCache::Flag Flag
 
typedef pkgCache::GrpIterator GrpIterator
 
typedef pkgCache::Header Header
 
typedef pkgCache::Package Package
 
typedef pkgCache::PkgFileIterator PkgFileIterator
 
typedef pkgCache::PkgIterator PkgIterator
 
typedef pkgCache::PrvIterator PrvIterator
 
typedef pkgCache::VerFileIterator VerFileIterator
 
typedef pkgCache::VerIterator VerIterator
 
typedef pkgCache::Version Version
 

Protected Member Functions

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

Protected Attributes

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

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
Completed 
Failed 
Incomplete 

Constructor & Destructor Documentation

pkgPackageManager::pkgPackageManager ( pkgDepCache Cache)
virtual pkgPackageManager::~pkgPackageManager ( )
virtual

Member Function Documentation

bool pkgPackageManager::CheckRConflicts ( PkgIterator  Pkg,
DepIterator  Dep,
const char *  Ver 
)
protected
virtual bool pkgPackageManager::Configure ( PkgIterator  )
inlineprotectedvirtual

Reimplemented in pkgDPkgPM, and pkgSimulate.

bool pkgPackageManager::ConfigureAll ( )
protected
bool pkgPackageManager::CreateOrderList ( )
protected
bool pkgPackageManager::DepAlwaysTrue ( DepIterator  D)
protected
OrderResult pkgPackageManager::DoInstall ( int  statusFd = -1)
OrderResult pkgPackageManager::DoInstallPostFork ( int  statusFd = -1)
OrderResult pkgPackageManager::DoInstallPreFork ( )
inline

References OrderInstall(), and Res.

Here is the call graph for this function:

bool pkgPackageManager::EarlyRemove ( PkgIterator  Pkg)
protected
bool pkgPackageManager::FixMissing ( )
bool pkgPackageManager::GetArchives ( pkgAcquire Owner,
pkgSourceList Sources,
pkgRecords Recs 
)
std::set<std::string> pkgPackageManager::GetDisappearedPackages ( )
inline

returns all packages dpkg let disappear

References disappearedPkgs.

virtual bool pkgPackageManager::Go ( int  statusFd = -1)
inlineprotectedvirtual

Reimplemented in pkgDPkgPM.

void pkgPackageManager::ImmediateAdd ( PkgIterator  P,
bool  UseInstallVer,
unsigned const int &  Depth = 0 
)
protected
virtual bool pkgPackageManager::Install ( PkgIterator  ,
std::string   
)
inlineprotectedvirtual

Reimplemented in pkgDPkgPM, and pkgSimulate.

virtual OrderResult pkgPackageManager::OrderInstall ( )
protectedvirtual

Referenced by DoInstallPreFork().

Here is the caller graph for this function:

virtual bool pkgPackageManager::Remove ( PkgIterator  ,
bool  = false 
)
inlineprotectedvirtual

Reimplemented in pkgDPkgPM, and pkgSimulate.

virtual void pkgPackageManager::Reset ( )
inlineprotectedvirtual

Reimplemented in pkgDPkgPM.

bool pkgPackageManager::SmartConfigure ( PkgIterator  Pkg,
int const  Depth 
)
protected
bool pkgPackageManager::SmartRemove ( PkgIterator  Pkg)
protected
bool pkgPackageManager::SmartUnPack ( PkgIterator  Pkg)
protected
bool pkgPackageManager::SmartUnPack ( PkgIterator  Pkg,
bool const  Immediate,
int const  Depth 
)
protected

Member Data Documentation

pkgDepCache& pkgPackageManager::Cache
protected
bool pkgPackageManager::Debug
protected
std::set<std::string> pkgPackageManager::disappearedPkgs
protected

saves packages dpkg let disappear

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

Referenced by GetDisappearedPackages().

std::string* pkgPackageManager::FileNames
protected
bool pkgPackageManager::ImmConfigureAll
protected
pkgOrderList* pkgPackageManager::List
protected
bool pkgPackageManager::NoImmConfigure
protected
OrderResult pkgPackageManager::Res
protected

Referenced by DoInstallPreFork().

bool pkgPackageManager::SigINTStop
static

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