瀏覽代碼

Fixed protect bug
Author: jgg
Date: 1999-02-05 02:26:00 GMT
Fixed protect bug

Arch Librarian 22 年之前
父節點
當前提交
3eeeb009e1
共有 1 個文件被更改,包括 3 次插入2 次删除
  1. 3 2
      apt-pkg/algorithms.cc

+ 3 - 2
apt-pkg/algorithms.cc

@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // -*- mode: cpp; mode: fold -*-
 // Description								/*{{{*/
 // 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
    Algorithms - A set of misc algorithms
@@ -700,7 +700,8 @@ bool pkgProblemResolver::Resolve(bool BrokenFix)
 	    {
 	    {
 	       if (Debug == true)
 	       if (Debug == true)
 		  clog << "Note, a broken or group was found in " << I.Name() << "." << endl;
 		  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;
 	       break;
 	    }
 	    }