]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/algorithms.h
The modification to orderlist.cc is from a patch DonKult (David) gave me, The modific...
[apt.git] / apt-pkg / algorithms.h
index cf4a98c4f95818b069336362ba0c178e5997d8f1..ebe31cc103024ab08124cb57bf5d8b400cbf7329 100644 (file)
@@ -108,7 +108,7 @@ class pkgProblemResolver                                            /*{{{*/
    
    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);};