summaryrefslogtreecommitdiff
path: root/apt-pkg/acquire.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 17:06:05 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 17:06:05 +0000
commit1b48091148e1f423a834d3218dbe024df34932b5 (patch)
treebe49e287c1f39eaa5cd467c5b47872ad40d5a4bc /apt-pkg/acquire.cc
parent6430c07cfcec9fbca23b3c407e4d2a1eaeb5c0fc (diff)
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)
Diffstat (limited to 'apt-pkg/acquire.cc')
-rw-r--r--apt-pkg/acquire.cc6
1 files changed, 5 insertions, 1 deletions
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)
{