]>
Commit | Line | Data |
---|---|---|
82e369c4 MV |
1 | // -*- mode: cpp; mode: fold -*- |
2 | // Description /*{{{*/ | |
3 | /* ###################################################################### | |
4 | ||
5 | Upgrade - Upgrade/DistUpgrade releated code | |
6 | ||
7 | ##################################################################### */ | |
8 | /*}}}*/ | |
9 | ||
10 | #ifndef PKGLIB_UPGRADE_H | |
11 | #define PKGLIB_UPGRADE_H | |
12 | ||
2a884c61 | 13 | #include <stddef.h> |
67caa2e6 | 14 | #include <apt-pkg/macros.h> |
2a884c61 | 15 | |
453b82a3 | 16 | class pkgDepCache; |
2a884c61 | 17 | class OpProgress; |
453b82a3 | 18 | |
82e369c4 MV |
19 | namespace APT { |
20 | namespace Upgrade { | |
21 | // FIXME: make this "enum class UpgradeMode {" once we enable c++11 | |
22 | enum UpgradeMode { | |
67caa2e6 | 23 | ALLOW_EVERYTHING = 0, |
82e369c4 | 24 | FORBID_REMOVE_PACKAGES = 1, |
d3e8fbb3 | 25 | FORBID_INSTALL_NEW_PACKAGES = 2 |
82e369c4 | 26 | }; |
2a884c61 | 27 | bool Upgrade(pkgDepCache &Cache, int UpgradeMode, OpProgress * const Progress = NULL); |
82e369c4 MV |
28 | } |
29 | } | |
30 | ||
3f506f68 | 31 | // please use APT::Upgrade::Upgrade() instead |
67caa2e6 DK |
32 | APT_DEPRECATED bool pkgDistUpgrade(pkgDepCache &Cache, OpProgress * const Progress = NULL); |
33 | APT_DEPRECATED bool pkgAllUpgrade(pkgDepCache &Cache, OpProgress * const Progress = NULL); | |
82e369c4 | 34 | |
2a884c61 | 35 | bool pkgMinimizeUpgrade(pkgDepCache &Cache); |
82e369c4 | 36 | #endif |