23 #ifndef PKGLIB_PACKAGEMANAGER_H
24 #define PKGLIB_PACKAGEMANAGER_H
26 #include <apt-pkg/macros.h>
28 #include <apt-pkg/install-progress.h>
29 #include <apt-pkg/init.h>
35 #ifndef APT_8_CLEANER_HEADERS
36 #include <apt-pkg/depcache.h>
51 enum OrderResult {Completed,Failed,Incomplete};
52 static bool SigINTStop;
55 std::string *FileNames;
70 void ImmediateAdd(
PkgIterator P,
bool UseInstallVer,
unsigned const int &Depth = 0);
71 virtual OrderResult OrderInstall();
73 bool CreateOrderList();
80 bool SmartConfigure(
PkgIterator Pkg,
int const Depth);
83 bool SmartUnPack(
PkgIterator Pkg,
bool const Immediate,
int const Depth);
88 virtual bool Install(
PkgIterator ,std::string ) {
return false;};
89 virtual bool Configure(PkgIterator ) {
return false;};
90 virtual bool Remove(PkgIterator ,
bool =
false) {
return false;};
91 #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
94 virtual bool Go(
int statusFd=-1) {
return true;};
97 virtual void Reset() {};
109 #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
112 __deprecated OrderResult DoInstall(
int statusFd=-1);
114 OrderResult DoInstall(
int statusFd=-1);
119 OrderResult DoInstallPreFork() {
120 Res = OrderInstall();
123 #if (APT_PKG_MAJOR >= 4 && APT_PKG_MINOR >= 13)
127 __deprecated OrderResult DoInstallPostFork(
int statusFd=-1);
129 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:47
std::set< std::string > disappearedPkgs
saves packages dpkg let disappear
Definition: packagemanager.h:68
The core download scheduler. {{{.
Definition: acquire.h:93
Definition: sourcelist.h:45
Definition: cacheiterators.h:264
Definition: install-progress.h:14
Definition: pkgcache.h:683
std::set< std::string > GetDisappearedPackages()
returns all packages dpkg let disappear
Definition: packagemanager.h:136
Definition: pkgrecords.h:24
Definition: depcache.h:56