]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.h
apt-pkg/contrib/sha2_internal.h: remove extern "C" to avoid symbol clash with libssl
[apt.git] / apt-pkg / algorithms.h
index 42945a6f244e9958cf85e62e2aaf7fd6079884df..86d5fbd5309d28439680524258fb0167b52aaf56 100644 (file)
@@ -108,10 +108,16 @@ class pkgProblemResolver                                          /*{{{*/
 
    void MakeScores();
    bool DoUpgrade(pkgCache::PkgIterator Pkg);
+
+   bool ResolveInternal(bool const BrokenFix = false);
+   bool ResolveByKeepInternal();
    
+   protected:
+   bool InstOrNewPolicyBroken(pkgCache::PkgIterator Pkg);
+
    public:
    
-   inline void Protect(pkgCache::PkgIterator Pkg) {Flags[Pkg->ID] |= Protected;};
+   inline void Protect(pkgCache::PkgIterator Pkg) {Flags[Pkg->ID] |= Protected; Cache.MarkProtected(Pkg);};
    inline void Remove(pkgCache::PkgIterator Pkg) {Flags[Pkg->ID] |= ToRemove;};
    inline void Clear(pkgCache::PkgIterator Pkg) {Flags[Pkg->ID] &= ~(Protected | ToRemove);};