Fixed depends error
authorArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:55:12 +0000 (16:55 +0000)
committerArch Librarian <arch@canonical.com>
Mon, 20 Sep 2004 16:55:12 +0000 (16:55 +0000)
Author: jgg
Date: 1999-11-17 01:52:01 GMT
Fixed depends error

apt-pkg/algorithms.cc
cmdline/apt-get.cc
debian/changelog

index 0df6c0a..49e964f 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: algorithms.cc,v 1.28 1999/10/31 23:58:35 jgg Exp $
+// $Id: algorithms.cc,v 1.29 1999/11/17 01:52:01 jgg Exp $
 /* ######################################################################
 
    Algorithms - A set of misc algorithms
@@ -738,7 +738,10 @@ bool pkgProblemResolver::Resolve(bool BrokenFix)
               if (InOr == true)
               {
                  if (OldEnd == LEnd && OrOp == OrRemove)
-                    Cache.MarkDelete(I);
+                 {
+                    if ((Flags[I->ID] & Protected) != Protected)
+                       Cache.MarkDelete(I);
+                 }               
                  if (OldEnd == LEnd && OrOp == OrKeep)
                     Cache.MarkKeep(I);
               }
index 0dd396a..11b2d96 100644 (file)
@@ -1,6 +1,6 @@
 // -*- mode: cpp; mode: fold -*-
 // Description                                                         /*{{{*/
-// $Id: apt-get.cc,v 1.88 1999/11/16 03:16:34 jgg Exp $
+// $Id: apt-get.cc,v 1.89 1999/11/17 01:52:01 jgg Exp $
 /* ######################################################################
    
    apt-get - Cover for dpkg
@@ -842,7 +842,7 @@ bool TryToInstall(pkgCache::PkgIterator Pkg,pkgDepCache &Cache,
    }
 
    Fix.Clear(Pkg);
-   Fix.Protect(Pkg);
+   Fix.Protect(Pkg);   
    if (Remove == true)
    {
       Fix.Remove(Pkg);
index 5c5b17c..bb951e1 100644 (file)
@@ -4,6 +4,7 @@ apt (0.3.14.1) unstable; urgency=low
   * Fixed cast error in byteswap macro and supporting code. Closes: #50093
   * Fixed buffer overflow for wide terminal sizes. Closes: #50295
   * Made -s and clean not do anything. Closes: #50238
+  * Problem with Protected packages and the new OR code.
   
  -- Ben Gertzfield <che@debian.org>  Sun,  7 Nov 1999 20:21:25 -0800