summaryrefslogtreecommitdiff
path: root/apt-private
diff options
context:
space:
mode:
authorDavid Kalnischkies <david@kalnischkies.de>2014-05-09 01:22:50 +0200
committerDavid Kalnischkies <david@kalnischkies.de>2014-05-09 01:25:55 +0200
commit0c8171d7c52a46a719382ee7ed67451213f608ec (patch)
tree38b23d20f6cbb8f18b2a1a77701c57d064508f5a /apt-private
parenteb0d90f08d6a6f2ee334a94f8fb45c776f5bcd6e (diff)
tests: be able to disable "Fetched …" statistics message
The line contains everchanging execution statistics which is harmful for testcases as they need to filter out such lines, but this is hard so we can just add an option to disable them instead and be done. Git-Dch: Ignore
Diffstat (limited to 'apt-private')
-rw-r--r--apt-private/acqprogress.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/apt-private/acqprogress.cc b/apt-private/acqprogress.cc
index 4bcfd8f00..17a12799c 100644
--- a/apt-private/acqprogress.cc
+++ b/apt-private/acqprogress.cc
@@ -140,6 +140,9 @@ void AcqTextStatus::Stop()
if (Quiet <= 0)
cout << '\r' << BlankLine << '\r' << flush;
+ if (_config->FindB("quiet::NoStatistic", false) == true)
+ return;
+
if (FetchedBytes != 0 && _error->PendingError() == false)
ioprintf(cout,_("Fetched %sB in %s (%sB/s)\n"),
SizeToStr(FetchedBytes).c_str(),