#include <dpkgpm.h>
|
bool | CheckRConflicts (PkgIterator Pkg, DepIterator Dep, const char *Ver) |
|
bool | CloseLog () |
|
virtual bool | Configure (PkgIterator Pkg) |
|
bool | ConfigureAll () |
|
bool | CreateOrderList () |
|
bool | DepAlwaysTrue (DepIterator D) |
|
void | DoDpkgStatusFd (int statusfd, int OutStatusFd) |
|
void | DoStdin (int master) |
|
void | DoTerminalPty (int master) |
|
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 Pkg, std::string File) |
|
bool | OpenLog () |
|
virtual OrderResult | OrderInstall () |
|
void | ProcessDpkgStatusLine (int OutStatusFd, char *line) |
|
virtual bool | Remove (PkgIterator Pkg, bool Purge=false) |
|
virtual void | Reset () |
|
bool | RunScriptsWithPkgs (const char *Cnf) |
|
bool | SendV2Pkgs (FILE *F) |
|
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) |
|
void | WriteApportReport (const char *pkgpath, const char *errormsg) |
|
void | WriteHistoryTag (std::string const &tag, std::string value) |
|
Enumerator |
---|
Completed |
|
Failed |
|
Incomplete |
|
virtual pkgDPkgPM::~pkgDPkgPM |
( |
| ) |
|
|
virtual |
bool pkgDPkgPM::CloseLog |
( |
| ) |
|
|
protected |
bool pkgPackageManager::ConfigureAll |
( |
| ) |
|
|
protectedinherited |
bool pkgPackageManager::CreateOrderList |
( |
| ) |
|
|
protectedinherited |
void pkgDPkgPM::DoDpkgStatusFd |
( |
int |
statusfd, |
|
|
int |
OutStatusFd |
|
) |
| |
|
protected |
OrderResult pkgPackageManager::DoInstall |
( |
int |
statusFd = -1 | ) |
|
|
inherited |
OrderResult pkgPackageManager::DoInstallPostFork |
( |
int |
statusFd = -1 | ) |
|
|
inherited |
void pkgDPkgPM::DoStdin |
( |
int |
master | ) |
|
|
protected |
void pkgDPkgPM::DoTerminalPty |
( |
int |
master | ) |
|
|
protected |
bool pkgPackageManager::FixMissing |
( |
| ) |
|
|
inherited |
std::set<std::string> pkgPackageManager::GetDisappearedPackages |
( |
| ) |
|
|
inlineinherited |
virtual bool pkgDPkgPM::Go |
( |
int |
StatusFd = -1 | ) |
|
|
protectedvirtual |
void pkgDPkgPM::handleDisappearAction |
( |
std::string const & |
pkgname | ) |
|
|
private |
record the disappear action and handle accordingly
dpkg let packages disappear then they have no files any longer and nothing depends on them. We need to collect this as dpkg as well as APT doesn't know beforehand that the package will disappear, so the only possible option is to tell the user afterwards about it. To enhance the experience we also try to forward the auto-install flag so the disappear-causer(s) are not autoremoved next time - for the transfer to happen the disappeared version needs to depend on the package the flag should be forwarded to and this package needs to declare a Replaces on the disappeared package.
- Parameters
-
pkgname | Name of the package that disappeared |
void pkgPackageManager::ImmediateAdd |
( |
PkgIterator |
P, |
|
|
bool |
UseInstallVer, |
|
|
unsigned const int & |
Depth = 0 |
|
) |
| |
|
protectedinherited |
virtual bool pkgDPkgPM::Install |
( |
PkgIterator |
Pkg, |
|
|
std::string |
File |
|
) |
| |
|
protectedvirtual |
bool pkgDPkgPM::OpenLog |
( |
| ) |
|
|
protected |
virtual OrderResult pkgPackageManager::OrderInstall |
( |
| ) |
|
|
protectedvirtualinherited |
void pkgDPkgPM::ProcessDpkgStatusLine |
( |
int |
OutStatusFd, |
|
|
char * |
line |
|
) |
| |
|
protected |
virtual bool pkgDPkgPM::Remove |
( |
PkgIterator |
Pkg, |
|
|
bool |
Purge = false |
|
) |
| |
|
protectedvirtual |
virtual void pkgDPkgPM::Reset |
( |
| ) |
|
|
protectedvirtual |
bool pkgDPkgPM::RunScriptsWithPkgs |
( |
const char * |
Cnf | ) |
|
|
protected |
bool pkgDPkgPM::SendV2Pkgs |
( |
FILE * |
F | ) |
|
|
protected |
bool pkgPackageManager::SmartConfigure |
( |
PkgIterator |
Pkg, |
|
|
int const |
Depth |
|
) |
| |
|
protectedinherited |
bool pkgPackageManager::SmartUnPack |
( |
PkgIterator |
Pkg, |
|
|
bool const |
Immediate, |
|
|
int const |
Depth |
|
) |
| |
|
protectedinherited |
void pkgDPkgPM::WriteApportReport |
( |
const char * |
pkgpath, |
|
|
const char * |
errormsg |
|
) |
| |
|
protected |
void pkgDPkgPM::WriteHistoryTag |
( |
std::string const & |
tag, |
|
|
std::string |
value |
|
) |
| |
|
protected |
pkgDPkgPMPrivate* pkgDPkgPM::d |
|
private |
bool pkgPackageManager::Debug |
|
protectedinherited |
std::set<std::string> pkgPackageManager::disappearedPkgs |
|
protectedinherited |
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 pkgPackageManager::GetDisappearedPackages().
std::string* pkgPackageManager::FileNames |
|
protectedinherited |
bool pkgPackageManager::ImmConfigureAll |
|
protectedinherited |
std::vector<Item> pkgDPkgPM::List |
|
protected |
bool pkgPackageManager::NoImmConfigure |
|
protectedinherited |
std::map<std::string,std::vector<struct DpkgState> > pkgDPkgPM::PackageOps |
|
protected |
std::map<std::string,unsigned int> pkgDPkgPM::PackageOpsDone |
|
protected |
unsigned int pkgDPkgPM::PackagesDone |
|
protected |
unsigned int pkgDPkgPM::PackagesTotal |
|
protected |
int pkgDPkgPM::pkgFailures |
|
protected |
bool pkgPackageManager::SigINTStop |
|
staticinherited |
The documentation for this class was generated from the following file: