summaryrefslogtreecommitdiff
path: root/apt-pkg/cacheiterators.h
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:24 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:24 +0000
commite3bf76d14b69295feb066e4f4f8dffb3b964e9a1 (patch)
treeb0177077e28de94541fcc56d9c7f50a0b46f71b4 /apt-pkg/cacheiterators.h
parenta005475ea62b65e08f67bf462ace6eb44289df07 (diff)
Purge support
Author: jgg Date: 1999-07-30 04:08:42 GMT Purge support
Diffstat (limited to 'apt-pkg/cacheiterators.h')
-rw-r--r--apt-pkg/cacheiterators.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h
index 800066be9..a3f134e63 100644
--- a/apt-pkg/cacheiterators.h
+++ b/apt-pkg/cacheiterators.h
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: cacheiterators.h,v 1.14 1999/07/10 04:58:42 jgg Exp $
+// $Id: cacheiterators.h,v 1.15 1999/07/30 04:08:42 jgg Exp $
/* ######################################################################
Cache Iterators - Iterators for navigating the cache structure
@@ -66,7 +66,8 @@ class pkgCache::PkgIterator
inline const char *Name() const {return Pkg->Name == 0?0:Owner->StrP + Pkg->Name;};
inline const char *Section() const {return Pkg->Section == 0?0:Owner->StrP + Pkg->Section;};
inline const char *TargetDist() const {return Pkg->TargetDist == 0?0:Owner->StrP + Pkg->TargetDist;};
- inline bool Purge() const {return Pkg->CurrentState == pkgCache::State::Purge;};
+ inline bool Purge() const {return Pkg->CurrentState == pkgCache::State::Purge ||
+ (Pkg->CurrentVer == 0 && Pkg->CurrentState == pkgCache::State::NotInstalled);};
inline VerIterator VersionList() const;
inline VerIterator TargetVer() const;
inline VerIterator CurrentVer() const;