From 0c8171d7c52a46a719382ee7ed67451213f608ec Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Fri, 9 May 2014 01:22:50 +0200 Subject: tests: be able to disable "Fetched …" statistics message MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- apt-private/acqprogress.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'apt-private/acqprogress.cc') 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(), -- cgit v1.2.3-70-g09d2