fix progress output for (dist-)upgrade calculation
[ntk/apt.git] / apt-pkg / upgrade.h
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 #include <stddef.h>
14
15 class pkgDepCache;
16 class OpProgress;
17
18 namespace APT {
19 namespace Upgrade {
20 // FIXME: make this "enum class UpgradeMode {" once we enable c++11
21 enum UpgradeMode {
22 FORBID_REMOVE_PACKAGES = 1,
23 FORBID_INSTALL_NEW_PACKAGES = 2
24 };
25 bool Upgrade(pkgDepCache &Cache, int UpgradeMode, OpProgress * const Progress = NULL);
26 }
27 }
28
29 // please use APT::Upgrade::Upgrade() instead
30 bool pkgDistUpgrade(pkgDepCache &Cache, OpProgress * const Progress = NULL);
31 bool pkgAllUpgrade(pkgDepCache &Cache, OpProgress * const Progress = NULL);
32
33 bool pkgMinimizeUpgrade(pkgDepCache &Cache);
34 #endif