X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/04aa15a8300dd48b950a7a28178abeb96589fdb0..a65cbe33db47c5657e4db7f35a5cd4b9614209bc:/apt-pkg/algorithms.cc diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index 43593e71b..967aba180 100644 --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: algorithms.cc,v 1.15 1999/01/30 02:12:53 jgg Exp $ +// $Id: algorithms.cc,v 1.16 1999/02/05 02:26:00 jgg Exp $ /* ###################################################################### Algorithms - A set of misc algorithms @@ -700,7 +700,8 @@ bool pkgProblemResolver::Resolve(bool BrokenFix) { if (Debug == true) clog << "Note, a broken or group was found in " << I.Name() << "." << endl; - Cache.MarkDelete(I); + if ((Flags[I->ID] & Protected) != Protected) + Cache.MarkDelete(I); break; }