diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:41 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:41 +0000 |
commit | c9807169492a1f5674fafc0af29eb37a9bbb26b3 (patch) | |
tree | 41d5a36476546b6e0fca11b24f1207dbcab35523 /apt-pkg/cacheiterators.h | |
parent | 1e4e52e0f74a2fd1e2c46627b6acb8aab54e792e (diff) |
Version compare fixes
Author: jgg
Date: 1998-11-27 00:07:23 GMT
Version compare fixes
Diffstat (limited to 'apt-pkg/cacheiterators.h')
-rw-r--r-- | apt-pkg/cacheiterators.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index 51714d259..0b5044178 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.8 1998/11/14 07:20:08 jgg Exp $ +// $Id: cacheiterators.h,v 1.9 1998/11/27 00:07:23 jgg Exp $ /* ###################################################################### Cache Iterators - Iterators for navigating the cache structure @@ -117,7 +117,7 @@ class pkgCache::VerIterator inline Version const &operator *() const {return *Ver;}; inline operator Version *() {return Ver == Owner.VerP?0:Ver;}; inline operator Version const *() const {return Ver == Owner.VerP?0:Ver;}; - + inline const char *VerStr() const {return Ver->VerStr == 0?0:Owner.StrP + Ver->VerStr;}; inline const char *Section() const {return Ver->Section == 0?0:Owner.StrP + Ver->Section;}; inline PkgIterator ParentPkg() const {return PkgIterator(Owner,Owner.PkgP + Ver->ParentPkg);}; @@ -126,7 +126,8 @@ class pkgCache::VerIterator inline VerFileIterator FileList() const; inline unsigned long Index() const {return Ver - Owner.VerP;}; bool Downloadable() const; - + const char *PriorityType(); + inline VerIterator(pkgCache &Owner,Version *Trg = 0) : Ver(Trg), Owner(Owner) { if (Ver == 0) |