From: Arch Librarian Date: Mon, 20 Sep 2004 17:06:05 +0000 (+0000) Subject: StatError to avoid a sometimes large batch of error messages X-Git-Tag: 0.7.24ubuntu1~482 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/1b48091148e1f423a834d3218dbe024df34932b5 StatError to avoid a sometimes large batch of error messages Author: mdz Date: 2004-03-17 05:17:11 GMT StatError to avoid a sometimes large batch of error messages (Closes: #234685) --- diff --git a/apt-pkg/acquire.cc b/apt-pkg/acquire.cc index 74bdaf85b..7800dc8d0 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.49 2001/05/27 04:28:37 jgg Exp $ +// $Id: acquire.cc,v 1.50 2004/03/17 05:17:11 mdz Exp $ /* ###################################################################### Acquire - File Acquiration @@ -87,7 +87,11 @@ pkgAcquire::~pkgAcquire() void pkgAcquire::Shutdown() { while (Items.size() != 0) + { + if (Items[0]->Status == Item::StatFetching) + Items[0]->Status = Item::StatError; delete Items[0]; + } while (Queues != 0) { diff --git a/debian/changelog b/debian/changelog index b397742aa..7d4fd17b0 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,6 +17,9 @@ apt (0.5.24) unstable; urgency=low * Regenerate .pot file (Closes: #237892) * Updated Polish translation from Marcin Owsiany (Closes: #238333) + * In pkgAcquire::Shutdown(), set the status of fetching items to + StatError to avoid a sometimes large batch of error messages + (Closes: #234685) --