From a8352c2859a6f84b36fa5cd0af89231cb656b1ce Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 12 Feb 2024 14:48:48 +0100 Subject: 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. --- apt-pkg/algorithms.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt-pkg/algorithms.h') 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); -- cgit v1.2.3-70-g09d2