]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.h
move implementation of checksums around by abstracting even more
[apt.git] / apt-pkg / algorithms.h
index 42945a6f244e9958cf85e62e2aaf7fd6079884df..050934badcae91779107a61de54ae2c05cda20e9 100644 (file)
@@ -108,10 +108,13 @@ class pkgProblemResolver                                          /*{{{*/
 
    void MakeScores();
    bool DoUpgrade(pkgCache::PkgIterator Pkg);
+
+   bool ResolveInternal(bool const BrokenFix = false);
+   bool ResolveByKeepInternal();
    
    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);};