From a2ec6097a7ffb06fe23f329def4dd0f20125564b Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 17:03:55 +0000 Subject: * Patch from Koblinger Egmont to fix Author: mdz Date: 2003-10-09 23:15:25 GMT * Patch from Koblinger Egmont to fix pkgCache::PkgFileIterator::Label() to correcctly refer to File->Label rather than File->Origin (Closes: #213311) --- apt-pkg/cacheiterators.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apt-pkg/cacheiterators.h') diff --git a/apt-pkg/cacheiterators.h b/apt-pkg/cacheiterators.h index cb8e0cd94..d8fde81e6 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.17 2001/04/29 05:13:51 jgg Exp $ +// $Id: cacheiterators.h,v 1.18 2003/10/09 23:15:25 mdz Exp $ /* ###################################################################### Cache Iterators - Iterators for navigating the cache structure @@ -289,7 +289,7 @@ class pkgCache::PkgFileIterator inline const char *Component() const {return File->Component == 0?0:Owner->StrP + File->Component;}; inline const char *Version() const {return File->Version == 0?0:Owner->StrP + File->Version;}; inline const char *Origin() const {return File->Origin == 0?0:Owner->StrP + File->Origin;}; - inline const char *Label() const {return File->Origin == 0?0:Owner->StrP + File->Label;}; + inline const char *Label() const {return File->Label == 0?0:Owner->StrP + File->Label;}; inline const char *Site() const {return File->Site == 0?0:Owner->StrP + File->Site;}; inline const char *Architecture() const {return File->Architecture == 0?0:Owner->StrP + File->Architecture;}; inline const char *IndexType() const {return File->IndexType == 0?0:Owner->StrP + File->IndexType;}; -- cgit v1.2.3