diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:11 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:11 +0000 |
commit | db890fdba13d88ef85a2ac0ce39749ebfa835516 (patch) | |
tree | fe6eb25f14e17ce6fad9990268d2236f7cc959c8 /apt-pkg/acquire-item.cc | |
parent | b185acc2d3ad2e210307800fdbf3dc9291195773 (diff) | |
download | apt-db890fdba13d88ef85a2ac0ce39749ebfa835516.tar.gz |
Fail over
Author: jgg
Date: 1998-12-11 06:32:33 GMT
Fail over
Diffstat (limited to 'apt-pkg/acquire-item.cc')
-rw-r--r-- | apt-pkg/acquire-item.cc | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 4edaa964f..59301784e 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.16 1998/12/11 06:01:23 jgg Exp $ +// $Id: acquire-item.cc,v 1.17 1998/12/11 06:32:33 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -54,6 +54,7 @@ pkgAcquire::Item::~Item() void pkgAcquire::Item::Failed(string Message) { Status = StatIdle; + ErrorText = LookupTag(Message,"Message"); if (QueueCounter <= 1) { /* This indicates that the file is not available right now but might @@ -66,7 +67,6 @@ void pkgAcquire::Item::Failed(string Message) return; } - ErrorText = LookupTag(Message,"Message"); Status = StatError; Owner->Dequeue(this); } @@ -474,3 +474,13 @@ string pkgAcqArchive::Describe() return Desc.URI; } /*}}}*/ +// AcqArchive::Failed - Failure handler /*{{{*/ +// --------------------------------------------------------------------- +/* Here we try other sources */ +void pkgAcqArchive::Failed(string Message) +{ + ErrorText = LookupTag(Message,"Message"); + if (QueueNext() == false) + Item::Failed(Message); +} + /*}}}*/ |