diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:24 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:54:24 +0000 |
commit | a005475ea62b65e08f67bf462ace6eb44289df07 (patch) | |
tree | 94948e5728ab68a2d70d381d4bb5093c7ddf7d49 /apt-pkg/pkgcache.cc | |
parent | ddc1d8d08eaff6c71c6062654ddd9d8981799ae9 (diff) |
Fixed the infinite loop problem
Author: jgg
Date: 1999-07-30 02:54:25 GMT
Fixed the infinite loop problem
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r-- | apt-pkg/pkgcache.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index b07c02a3b..9e7b0f392 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.27 1999/07/26 17:46:07 jgg Exp $ +// $Id: pkgcache.cc,v 1.28 1999/07/30 02:54:25 jgg Exp $ /* ###################################################################### Package Cache - Accessor code for the cache @@ -250,8 +250,7 @@ pkgCache::PkgIterator::OkState pkgCache::PkgIterator::State() const Pkg->CurrentState == pkgCache::State::HalfConfigured) return NeedsConfigure; - if (Pkg->CurrentState == pkgCache::State::UnInstalled || - Pkg->CurrentState == pkgCache::State::HalfInstalled || + if (Pkg->CurrentState == pkgCache::State::HalfInstalled || Pkg->InstState != pkgCache::State::Ok) return NeedsUnpack; |