diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:50 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:51:50 +0000 |
commit | 018f15333c0b24232f771a675fc2b4c8cb5fe799 (patch) | |
tree | 39c876564f6963479d6ffe30e41427b3c32b5f3b /apt-pkg/pkgcache.cc | |
parent | 542ec555f1d484a299b56e35655756d78716f102 (diff) |
CDROM and GlobOr fix
Author: jgg
Date: 1998-12-04 22:56:50 GMT
CDROM and GlobOr fix
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r-- | apt-pkg/pkgcache.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index 06cad4b16..8b0e85ea3 100644 --- a/apt-pkg/pkgcache.cc +++ b/apt-pkg/pkgcache.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: pkgcache.cc,v 1.18 1998/11/27 00:07:24 jgg Exp $ +// $Id: pkgcache.cc,v 1.19 1998/12/04 22:56:52 jgg Exp $ /* ###################################################################### Package Cache - Accessor code for the cache @@ -379,9 +379,10 @@ void pkgCache::DepIterator::GlobOr(DepIterator &Start,DepIterator &End) // Compute a single dependency element (glob or) Start = *this; End = *this; - for (bool LastOR = true; end() == false && LastOR == true; (*this)++) + for (bool LastOR = true; end() == false && LastOR == true;) { LastOR = (Dep->CompareOp & pkgCache::Dep::Or) == pkgCache::Dep::Or; + (*this)++; if (LastOR == true) End = (*this); } |