From 4dc619c0435d44a6a03cfda357654d3d76833b68 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Wed, 8 Jun 2016 10:56:14 +0200 Subject: edsp: if internal is used, keep this decision MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It wasn't noticeable before, but now with the (optional) logging it can be observed that we decide in the internal path two times if an internal or external solver should be used (and hence with logging, it is attempted twice), so if we are in the internal path call the internal resolver directly, which means those internal methods need to be public – but we can hide them based on the symbol at least. --- apt-pkg/algorithms.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'apt-pkg/algorithms.h') diff --git a/apt-pkg/algorithms.h b/apt-pkg/algorithms.h index 5b0d8fb29..c1a26587d 100644 --- a/apt-pkg/algorithms.h +++ b/apt-pkg/algorithms.h @@ -124,9 +124,6 @@ class pkgProblemResolver /*{{{*/ APT_HIDDEN void MakeScores(); APT_HIDDEN bool DoUpgrade(pkgCache::PkgIterator Pkg); - APT_HIDDEN bool ResolveInternal(bool const BrokenFix = false); - APT_HIDDEN bool ResolveByKeepInternal(); - protected: bool InstOrNewPolicyBroken(pkgCache::PkgIterator Pkg); @@ -138,9 +135,11 @@ class pkgProblemResolver /*{{{*/ // 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); // Try to resolve problems only by using keep bool ResolveByKeep(OpProgress * const Progress = NULL); + APT_HIDDEN bool ResolveByKeepInternal(); APT_DEPRECATED_MSG("NOOP as MarkInstall enforces not overriding FromUser markings") void InstallProtect(); -- cgit v1.2.3