]> git.saurik.com Git - apt.git/blobdiff - apt-pkg/depcache.cc
merge with debian-sid branch and 0.8.14.1 release
[apt.git] / apt-pkg / depcache.cc
index 07803d7bf7a69bb9e012b5b5698e8715ded19f0f..474313a0d386d565388b6c6b5896353ce81575f4 100644 (file)
@@ -70,7 +70,7 @@ void pkgDepCache::ActionGroup::release()
            cache.MarkAndSweep();
        }
 
-      released = false;
+      released = true;
     }
 }
 
@@ -549,8 +549,8 @@ void pkgDepCache::AddStates(const PkgIterator &Pkg,int Add)
    // Not installed
    if (Pkg->CurrentVer == 0)
    {
-      if (State.Mode == ModeDelete && 
-         (State.iFlags | Purge) == Purge && Pkg.Purge() == false)
+      if (State.Mode == ModeDelete &&
+         (State.iFlags & Purge) == Purge && Pkg.Purge() == false)
         iDelCount += Add;
       
       if (State.Mode == ModeInstall)