diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:13 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:13 +0000 |
commit | d556d1a1cc89e0f99d1b76fd6da72fd0174f5862 (patch) | |
tree | 6b67b2f7bb477d9e6b000059113101fd8695dcef /apt-pkg/packagemanager.cc | |
parent | 58d63ae695eb9f979e65fa8c01fa2c34d61e6527 (diff) |
Purge support
Author: jgg
Date: 1999-07-10 04:58:42 GMT
Purge support
Diffstat (limited to 'apt-pkg/packagemanager.cc')
-rw-r--r-- | apt-pkg/packagemanager.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apt-pkg/packagemanager.cc b/apt-pkg/packagemanager.cc index 95192c9f0..126caef93 100644 --- a/apt-pkg/packagemanager.cc +++ b/apt-pkg/packagemanager.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: packagemanager.cc,v 1.17 1999/07/09 04:11:34 jgg Exp $ +// $Id: packagemanager.cc,v 1.18 1999/07/10 04:58:42 jgg Exp $ /* ###################################################################### Package Manager - Abstacts the package manager @@ -152,7 +152,9 @@ bool pkgPackageManager::CreateOrderList() // Not interesting if ((Cache[I].Keep() == true || Cache[I].InstVerIter(Cache) == I.CurrentVer()) && - I.State() == pkgCache::PkgIterator::NeedsNothing) + I.State() == pkgCache::PkgIterator::NeedsNothing && + (I.Purge() != false || Cache[I].Mode != pkgDepCache::ModeDelete || + (Cache[I].iFlags & pkgDepCache::Purge) != pkgDepCache::Purge)) continue; // Append it to the list |