diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2024-02-12 14:48:48 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-02-13 14:27:27 +0100 |
| commit | a8352c2859a6f84b36fa5cd0af89231cb656b1ce (patch) | |
| tree | 69ba18aec6b6a49efd85ef746feb752afc90a780 /apt-pkg/algorithms.h | |
| parent | 26e0e9b76fb06afe5250eeb8e5b3d069d4793432 (diff) | |
Add public phased update API
This moves the functions of the PhasedUpgrader class into
various other classes so they can be publicly exposed.
This introduces three new functions:
pkgDepCache::PhasingApplied() tells you whether phasing should
be applied to the package.
pkgProblemResolver::KeepPhasedUpdates() keeps back updates that
have phasing applied.
pkgCache::VerIterator::IsSecurityUpdate() determines whether this
version contains security fixes.
Diffstat (limited to 'apt-pkg/algorithms.h')
| -rw-r--r-- | apt-pkg/algorithms.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/algorithms.h b/apt-pkg/algorithms.h index f06a38c1b..558beecd3 100644 --- a/apt-pkg/algorithms.h +++ b/apt-pkg/algorithms.h @@ -140,6 +140,8 @@ class APT_PUBLIC pkgProblemResolver /*{{{*/ inline void AllowBrokenPolicy(pkgCache::PkgIterator Pkg) { Flags[Pkg->ID] |= BrokenPolicyAllowed; }; #endif + bool KeepPhasedUpdates(); + // Try to intelligently resolve problems by installing and removing packages bool Resolve(bool BrokenFix = false, OpProgress * const Progress = NULL); APT_HIDDEN bool ResolveInternal(bool const BrokenFix = false); |
