diff options
| author | Julian Andres Klode <julian.klode@canonical.com> | 2024-11-02 13:13:51 +0100 |
|---|---|---|
| committer | Julian Andres Klode <julian.klode@canonical.com> | 2024-11-02 13:17:11 +0100 |
| commit | 9f40a9a3251cc6b51bc50a5fe12c49a45a51aedd (patch) | |
| tree | 71a44af6442e412466d4811efb450331a59054b9 /apt-pkg/solver3.h | |
| parent | d7dc72dd8b23f3fbedb32f8cacd9ba920d78ccc3 (diff) | |
solver3: Refactor Install(Ver) to PropagateInstall(Ver)
This is the first part of changing from Install() to Enqueue() for
installs, affecting only the versions. For packages, we still have
to resolve the group changing: When propagating cleanly, we don't
have the information as to which group the package was part of,
hence we are no longer able to queue the version selection of
upgrades before obsolete packages, for example, which needs
solving.
Diffstat (limited to 'apt-pkg/solver3.h')
| -rw-r--r-- | apt-pkg/solver3.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h index de1bd1e73..0e6d0e2f9 100644 --- a/apt-pkg/solver3.h +++ b/apt-pkg/solver3.h @@ -153,6 +153,8 @@ class Solver bool RejectReverseDependencies(pkgCache::VerIterator Ver); // \brief Enqueue a single or group bool EnqueueOrGroup(pkgCache::DepIterator start, pkgCache::DepIterator end, Var reason); + // \brief Propagate a "true" value of a variable + bool PropagateInstall(Var var); // \brief Propagate a rejection of a variable bool PropagateReject(Var var); // \brief Check if a version is allowed by policy. @@ -186,8 +188,6 @@ class Solver // \brief Mark the package for install. This is annoying as it incurs a decision bool Install(pkgCache::PkgIterator Pkg, Var reason, Group group); - // \brief Install a version. - bool Install(pkgCache::VerIterator Ver, Var reason, Group group); // \brief Apply the selections from the dep cache to the solver bool FromDepCache(pkgDepCache &depcache); |
