// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acquire.cc,v 1.8 1998/11/05 07:21:40 jgg Exp $
+// $Id: acquire.cc,v 1.9 1998/11/06 02:52:20 jgg Exp $
/* ######################################################################
Acquire - File Acquiration
if (Items == 0 || Workers == 0)
return true;
- cout << "Cylce for " << Name << endl;
-
// Look for a queable item
QItem *I = Items;
for (; I != 0; I = I->Next)
I->Worker = Workers;
I->Owner->Status = pkgAcquire::Item::StatFetching;
- cout << "Item has been queued!" << endl;
return Workers->QueueItem(I);
}
/*}}}*/
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: init.cc,v 1.11 1998/11/05 07:42:03 jgg Exp $
+// $Id: init.cc,v 1.12 1998/11/06 02:52:21 jgg Exp $
/* ######################################################################
Init - Initialize the package library
// Read an alternate config file
const char *Cfg = getenv("APT_CONFIG");
- if (Cfg != 0 && FileExists(FName) == true)
+ if (Cfg != 0 && FileExists(Cfg) == true)
Res &= ReadConfigFile(Cnf,Cfg);
if (Res == false)
// -*- 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
/* 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;