summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:52:46 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:52:46 +0000
commit3eeeb009e1c8198d91f0925694e84304cf3d84a6 (patch)
tree8448a3419bb209693176d18fd01ca13e75c8a24c
parentc71bc556c1cbc334f6be68ac355be0e385da8698 (diff)
Fixed protect bug
Author: jgg Date: 1999-02-05 02:26:00 GMT Fixed protect bug
-rw-r--r--apt-pkg/algorithms.cc5
1 files changed, 3 insertions, 2 deletions
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;
}