]> git.saurik.com Git - apt.git/commitdiff
Fixed protect bug
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:46 +0000 (16:52 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:52:46 +0000 (16:52 +0000)
Author: jgg
Date: 1999-02-05 02:26:00 GMT
Fixed protect bug

apt-pkg/algorithms.cc

index 43593e71b884b566bb0acb62e569dabb572807fa..967aba1800de96c74d8fe1795b3e6a11d357efcf 100644 (file)
@@ -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;
            }