summaryrefslogtreecommitdiff
path: root/apt-pkg/solver3.h
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/solver3.h')
-rw-r--r--apt-pkg/solver3.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/solver3.h b/apt-pkg/solver3.h
index fc68a5cef..d3e22eaba 100644
--- a/apt-pkg/solver3.h
+++ b/apt-pkg/solver3.h
@@ -93,6 +93,8 @@ class Solver
pkgCache &cache;
// Policy is needed for determining candidate version.
pkgDepCache::Policy &policy;
+ // Root state
+ std::unique_ptr<State> rootState;
// States for packages
std::vector<State> pkgStates{};
// States for versions
@@ -425,6 +427,5 @@ inline APT::Solver::State &APT::Solver::operator[](Var r)
return (*this)[cache.PkgP + P];
if (auto V = r.Ver())
return (*this)[cache.VerP + V];
-
- abort();
+ return *rootState.get();
}