summaryrefslogtreecommitdiff
path: root/apt-pkg/algorithms.h
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2011-07-14 11:03:55 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2011-07-14 11:03:55 +0200
commit953b348cb02fcdccb597b6988f904bfdb696e92e (patch)
tree95985d30ba16e13a6e1f5d99f79e896a744196bf /apt-pkg/algorithms.h
parent457bea86ba07fc0cfcb08bcf9f81f5858975f916 (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.h3
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);};