23 #ifndef PKGLIB_PACKAGEMANAGER_H
24 #define PKGLIB_PACKAGEMANAGER_H
32 #ifndef APT_8_CLEANER_HEADERS
33 #include <apt-pkg/depcache.h>
46 enum OrderResult {Completed,Failed,Incomplete};
47 static bool SigINTStop;
50 std::string *FileNames;
65 void ImmediateAdd(
PkgIterator P,
bool UseInstallVer,
unsigned const int &Depth = 0);
66 virtual OrderResult OrderInstall();
68 bool CreateOrderList();
75 bool SmartConfigure(
PkgIterator Pkg,
int const Depth);
78 bool SmartUnPack(
PkgIterator Pkg,
bool const Immediate,
int const Depth);
83 virtual bool Install(
PkgIterator ,std::string ) {
return false;};
84 virtual bool Configure(PkgIterator ) {
return false;};
85 virtual bool Remove(PkgIterator ,
bool =
false) {
return false;};
86 virtual bool Go(
int statusFd=-1) {
return true;};
87 virtual void Reset() {};
99 OrderResult DoInstall(
int statusFd=-1);
103 OrderResult DoInstallPreFork() {
104 Res = OrderInstall();
109 OrderResult DoInstallPostFork(
int statusFd=-1);
Definition: cacheiterators.h:136
Definition: pkgcache.h:121
Definition: orderlist.h:24
pkgCache - Structure definitions for the cache file
Definition: packagemanager.h:42
std::set< std::string > disappearedPkgs
saves packages dpkg let disappear
Definition: packagemanager.h:63
The core download scheduler. {{{.
Definition: acquire.h:93
Definition: sourcelist.h:45
Definition: cacheiterators.h:264
Definition: pkgcache.h:683
std::set< std::string > GetDisappearedPackages()
returns all packages dpkg let disappear
Definition: packagemanager.h:113
Definition: pkgrecords.h:24
Definition: depcache.h:56