From c7c1b0f62edbefb01efce67f64bd44397be36946 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:21 +0000 Subject: Small bug fixes Author: jgg Date: 1998-11-06 02:52:20 GMT Small bug fixes --- apt-pkg/pkgcache.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apt-pkg/pkgcache.cc') diff --git a/apt-pkg/pkgcache.cc b/apt-pkg/pkgcache.cc index a73cb410b..99cd11413 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.12 1998/10/20 04:33:14 jgg Exp $ +// $Id: pkgcache.cc,v 1.13 1998/11/06 02:52:22 jgg Exp $ /* ###################################################################### Package Cache - Accessor code for the cache @@ -204,6 +204,10 @@ void pkgCache::PkgIterator::operator ++(int) /* By this we mean if it is either cleanly installed or cleanly removed. */ pkgCache::PkgIterator::OkState pkgCache::PkgIterator::State() const { + if (Pkg->InstState == pkgCache::State::ReInstReq || + Pkg->InstState == pkgCache::State::HoldReInstReq) + return NeedsUnpack; + if (Pkg->CurrentState == pkgCache::State::UnPacked || Pkg->CurrentState == pkgCache::State::HalfConfigured) return NeedsConfigure; -- cgit v1.2.3