]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.h
add a first round of stuff needed for talking between APT and solvers
[apt.git] / apt-pkg / algorithms.h
index cf4a98c4f95818b069336362ba0c178e5997d8f1..0778ec72260b0b7047ffd3752a1700297a6a817e 100644 (file)
@@ -105,10 +105,12 @@ class pkgProblemResolver                                          /*{{{*/
 
    void MakeScores();
    bool DoUpgrade(pkgCache::PkgIterator Pkg);
+
+   bool ResolveInternal(bool const BrokenFix = false);
    
    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);};