1 // -*- mode: cpp; mode: fold -*-
3 /* ######################################################################
5 Upgrade - Upgrade/DistUpgrade releated code
7 ##################################################################### */
10 #ifndef PKGLIB_UPGRADE_H
11 #define PKGLIB_UPGRADE_H
14 #include <apt-pkg/macros.h>
21 // FIXME: make this "enum class UpgradeMode {" once we enable c++11
24 FORBID_REMOVE_PACKAGES
= 1,
25 FORBID_INSTALL_NEW_PACKAGES
= 2
27 bool Upgrade(pkgDepCache
&Cache
, int UpgradeMode
, OpProgress
* const Progress
= NULL
);
31 // please use APT::Upgrade::Upgrade() instead
32 APT_DEPRECATED
bool pkgDistUpgrade(pkgDepCache
&Cache
, OpProgress
* const Progress
= NULL
);
33 APT_DEPRECATED
bool pkgAllUpgrade(pkgDepCache
&Cache
, OpProgress
* const Progress
= NULL
);
35 bool pkgMinimizeUpgrade(pkgDepCache
&Cache
);