diff options
author | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:38 +0000 |
---|---|---|
committer | Arch Librarian <arch@canonical.com> | 2004-09-20 16:52:38 +0000 |
commit | 681d76d0248a56e09581f75c128b510d6bbbcfb5 (patch) | |
tree | a4698c6b0aae4913ae800aa3367bf7b9c131a572 | |
parent | f3bcc38396ab3a7ad5c2e299a5f4e036b2cd06b3 (diff) |
Ignored missing release files
Author: jgg
Date: 1999-01-31 22:25:34 GMT
Ignored missing release files
-rw-r--r-- | apt-pkg/acquire-item.cc | 23 | ||||
-rw-r--r-- | apt-pkg/acquire-item.h | 4 | ||||
-rw-r--r-- | cmdline/acqprogress.cc | 14 |
3 files changed, 34 insertions, 7 deletions
diff --git a/apt-pkg/acquire-item.cc b/apt-pkg/acquire-item.cc index 0883c296d..e64190078 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.20 1999/01/30 08:08:54 jgg Exp $ +// $Id: acquire-item.cc,v 1.21 1999/01/31 22:25:34 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -64,12 +64,12 @@ void pkgAcquire::Item::Failed(string Message,pkgAcquire::MethodConfig *Cnf) StringToBool(LookupTag(Message,"Transient-Failure"),false) == true) { Status = StatIdle; - Owner->Dequeue(this); + Dequeue(); return; } Status = StatError; - Owner->Dequeue(this); + Dequeue(); } } /*}}}*/ @@ -329,6 +329,23 @@ string pkgAcqIndexRel::Describe() return Location->ReleaseURI(); } /*}}}*/ +// AcqIndexRel::Failed - Silence failure messages for missing rel files /*{{{*/ +// --------------------------------------------------------------------- +/* */ +void pkgAcqIndexRel::Failed(string Message,pkgAcquire::MethodConfig *Cnf) +{ + // This is the retry counter + if (Cnf->LocalOnly == true || + StringToBool(LookupTag(Message,"Transient-Failure"),false) == false) + { + Status = StatIdle; + Dequeue(); + return; + } + + Item::Failed(Message,Cnf); +} + /*}}}*/ // AcqArchive::AcqArchive - Constructor /*{{{*/ // --------------------------------------------------------------------- diff --git a/apt-pkg/acquire-item.h b/apt-pkg/acquire-item.h index 8b6889c4d..4429b1ceb 100644 --- a/apt-pkg/acquire-item.h +++ b/apt-pkg/acquire-item.h @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acquire-item.h,v 1.14 1999/01/30 08:08:54 jgg Exp $ +// $Id: acquire-item.h,v 1.15 1999/01/31 22:25:34 jgg Exp $ /* ###################################################################### Acquire Item - Item to acquire @@ -36,6 +36,7 @@ class pkgAcquire::Item pkgAcquire *Owner; inline void QueueURI(ItemDesc &Item) {Owner->Enqueue(Item);}; + inline void Dequeue() {Owner->Dequeue(this);}; void Rename(string From,string To); @@ -97,6 +98,7 @@ class pkgAcqIndexRel : public pkgAcquire::Item public: + virtual void Failed(string Message,pkgAcquire::MethodConfig *Cnf); virtual void Done(string Message,unsigned long Size,string Md5Hash); virtual string Custom600Headers(); virtual string Describe(); diff --git a/cmdline/acqprogress.cc b/cmdline/acqprogress.cc index 99e8fd9c3..7b23f3089 100644 --- a/cmdline/acqprogress.cc +++ b/cmdline/acqprogress.cc @@ -1,6 +1,6 @@ // -*- mode: cpp; mode: fold -*- // Description /*{{{*/ -// $Id: acqprogress.cc,v 1.7 1999/01/27 02:48:53 jgg Exp $ +// $Id: acqprogress.cc,v 1.8 1999/01/31 22:25:34 jgg Exp $ /* ###################################################################### Acquire Progress - Command line progress meter @@ -93,8 +93,16 @@ void AcqTextStatus::Fail(pkgAcquire::ItemDesc &Itm) if (Quiet <= 0) cout << '\r' << BlankLine << '\r'; - cout << "Err " << Itm.Description << endl; - cout << " " << Itm.Owner->ErrorText << endl; + if (Itm.Owner->Status == pkgAcquire::Item::StatIdle) + { + cout << "Ign " << Itm.Description << endl; + } + else + { + cout << "Err " << Itm.Description << endl; + cout << " " << Itm.Owner->ErrorText << endl; + } + Update = true; }; /*}}}*/ |