The pkgAcquire::Run() code works uses a while(ToFetch > 0) loop
over the items queued for fetching. This means that we need to
Deqeueue the item if we call AbortTransaction() to avoid a hang.
std::clog << " Cancel: " << (*I)->DestFile << std::endl;
// the transaction will abort, so stop anything that is idle
if ((*I)->Status == pkgAcquire::Item::StatIdle)
+ {
(*I)->Status = pkgAcquire::Item::StatDone;
+ (*I)->Dequeue();
+ }
}
Transaction.clear();
}
*/
class pkgAcquire::Item : public WeakPointable
{
+ friend pkgAcqMetaBase;
+
void *d;
protected: