diff options
author | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-14 11:03:55 +0200 |
---|---|---|
committer | Michael Vogt <michael.vogt@ubuntu.com> | 2011-07-14 11:03:55 +0200 |
commit | 953b348cb02fcdccb597b6988f904bfdb696e92e (patch) | |
tree | 95985d30ba16e13a6e1f5d99f79e896a744196bf /apt-pkg/algorithms.h | |
parent | 457bea86ba07fc0cfcb08bcf9f81f5858975f916 (diff) |
make ResolveByKeep() more clever and hold back packages that would go into a broken policy state by the upgrade
Diffstat (limited to 'apt-pkg/algorithms.h')
-rw-r--r-- | apt-pkg/algorithms.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-pkg/algorithms.h b/apt-pkg/algorithms.h index ebe31cc10..99501bed1 100644 --- a/apt-pkg/algorithms.h +++ b/apt-pkg/algorithms.h @@ -106,6 +106,9 @@ class pkgProblemResolver /*{{{*/ void MakeScores(); bool DoUpgrade(pkgCache::PkgIterator Pkg); + protected: + bool InstOrNewPolicyBroken(pkgCache::PkgIterator Pkg); + public: inline void Protect(pkgCache::PkgIterator Pkg) {Flags[Pkg->ID] |= Protected; Cache.MarkProtected(Pkg);}; |