From be4401bfa4a240bbc894e1bfeb1e1e8d63fc7b18 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:16 +0000 Subject: New http method Author: jgg Date: 1998-11-01 05:27:29 GMT New http method --- apt-pkg/acquire.cc | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) (limited to 'apt-pkg/acquire.cc') diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 3ed0e5d28..91b2a7590 100644 --- a/apt-pkg/acquire.cc +++ b/apt-pkg/acquire.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire.cc,v 1.6 1998/10/30 07:53:37 jgg Exp $ +// $Id: acquire.cc,v 1.7 1998/11/01 05:27:34 jgg Exp $ /* ###################################################################### Acquire - File Acquiration @@ -290,21 +290,23 @@ bool pkgAcquire::Run() if (_error->PendingError() == true) break; } - + + // Shut down the acquire bits + Running = false; for (Queue *I = Queues; I != 0; I = I->Next) I->Shutdown(); - Running = false; return _error->PendingError(); } /*}}}*/ -// pkgAcquire::Bump - Called when an item is dequeued /*{{{*/ +// Acquire::Bump - Called when an item is dequeued /*{{{*/ // --------------------------------------------------------------------- /* This routine bumps idle queues in hopes that they will be able to fetch the dequeued item */ void pkgAcquire::Bump() { - + for (Queue *I = Queues; I != 0; I = I->Next) + I->Bump(); } /*}}}*/ @@ -476,3 +478,10 @@ bool pkgAcquire::Queue::Cycle() return Workers->QueueItem(I); } /*}}}*/ +// Queue::Bump - Fetch any pending objects if we are idle /*{{{*/ +// --------------------------------------------------------------------- +/* */ +void pkgAcquire::Queue::Bump() +{ +} + /*}}}*/ -- cgit v1.2.3-70-g09d2