summaryrefslogtreecommitdiff
path: root/apt-pkg/pkgcache.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:51:21 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:51:21 +0000
commitc7c1b0f62edbefb01efce67f64bd44397be36946 (patch)
tree5d3df8b575da338c9045c0523628957ae57cdfe8 /apt-pkg/pkgcache.cc
parent7deed45913546487c5162c3600a31e614e68a05a (diff)
Small bug fixes
Author: jgg Date: 1998-11-06 02:52:20 GMT Small bug fixes
Diffstat (limited to 'apt-pkg/pkgcache.cc')
-rw-r--r--apt-pkg/pkgcache.cc6
1 files changed, 5 insertions, 1 deletions
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;