]>
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 | ||
13 | namespace APT { | |
14 | namespace Upgrade { | |
15 | // FIXME: make this "enum class UpgradeMode {" once we enable c++11 | |
16 | enum UpgradeMode { | |
17 | FORBID_REMOVE_PACKAGES = 1, | |
3f506f68 | 18 | FORBID_INSTALL_NEW_PACKAGES = 2, |
82e369c4 MV |
19 | }; |
20 | bool Upgrade(pkgDepCache &Cache, int UpgradeMode); | |
21 | } | |
22 | } | |
23 | ||
3f506f68 | 24 | // please use APT::Upgrade::Upgrade() instead |
82e369c4 MV |
25 | bool pkgDistUpgrade(pkgDepCache &Cache); |
26 | bool pkgAllUpgrade(pkgDepCache &Cache); | |
27 | bool pkgMinimizeUpgrade(pkgDepCache &Cache); | |
28 | ||
29 | ||
30 | #endif |