From 93bf083d699c60f1ac40297bfa6783fb0cb800d8 Mon Sep 17 00:00:00 2001 From: Arch Librarian Date: Mon, 20 Sep 2004 16:51:15 +0000 Subject: Sync Author: jgg Date: 1998-10-30 07:53:30 GMT Sync --- apt-pkg/acquire-item.cc | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'apt-pkg/acquire-item.cc') diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 4435e2553..f8cc7a0de 100644 --- a/apt-pkg/acquire-item.cc +++ b/apt-pkg/acquire-item.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire-item.cc,v 1.5 1998/10/26 07:11:43 jgg Exp $ +// $Id: acquire-item.cc,v 1.6 1998/10/30 07:53:34 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -46,13 +46,17 @@ pkgAcquire::Item::~Item() /*}}}*/ // Acquire::Item::Failed - Item failed to download /*{{{*/ // --------------------------------------------------------------------- -/* */ +/* We return to an idle state if there are still other queues that could + fetch this object */ void pkgAcquire::Item::Failed(string Message) { - Status = StatError; - ErrorText = LookupTag(Message,"Message"); + Status = StatIdle; if (QueueCounter <= 1) + { + ErrorText = LookupTag(Message,"Message"); + Status = StatError; Owner->Dequeue(this); + } } /*}}}*/ // Acquire::Item::Done - Item downloaded OK /*{{{*/ -- cgit v1.2.3-70-g09d2