summaryrefslogtreecommitdiff
path: root/cmdline/acqprogress.cc
diff options
context:
space:
mode:
authorArch Librarian <arch@canonical.com>2004-09-20 16:54:30 +0000
committerArch Librarian <arch@canonical.com>2004-09-20 16:54:30 +0000
commit8508b1df3743c016f3f3aa82d63672378a113cac (patch)
treeab87c7448f34456ad0e3499cdf8b99336ae3d4d1 /cmdline/acqprogress.cc
parent8384ebdff13da4c2d8e6b4f71b6ef592219746df (diff)
Fixed strange seg on sparc
Author: jgg Date: 1999-08-04 05:37:18 GMT Fixed strange seg on sparc
Diffstat (limited to 'cmdline/acqprogress.cc')
-rw-r--r--cmdline/acqprogress.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/cmdline/acqprogress.cc b/cmdline/acqprogress.cc
index f16843c61..556b8869b 100644
--- a/cmdline/acqprogress.cc
+++ b/cmdline/acqprogress.cc
@@ -1,6 +1,6 @@
// -*- mode: cpp; mode: fold -*-
// Description /*{{{*/
-// $Id: acqprogress.cc,v 1.16 1999/07/03 03:10:35 jgg Exp $
+// $Id: acqprogress.cc,v 1.17 1999/08/04 05:37:18 jgg Exp $
/* ######################################################################
Acquire Progress - Command line progress meter
@@ -12,6 +12,7 @@
#include <apt-pkg/acquire-item.h>
#include <apt-pkg/acquire-worker.h>
#include <apt-pkg/strutl.h>
+#include <apt-pkg/error.h>
#include <stdio.h>
#include <signal.h>
@@ -124,7 +125,7 @@ void AcqTextStatus::Stop()
if (Quiet <= 0)
cout << '\r' << BlankLine << '\r';
- if (FetchedBytes != 0)
+ if (FetchedBytes != 0 && _error->PendingError() == false)
cout << "Fetched " << SizeToStr(FetchedBytes) << "B in " <<
TimeToStr(ElapsedTime) << " (" << SizeToStr(CurrentCPS) <<
"B/s)" << endl;