From 3158e9b562e9b8ae41aaf5f90a4fb064cd87e66d Mon Sep 17 00:00:00 2001 From: Richard Ipsum Date: Mon, 25 Apr 2016 20:21:41 +0100 Subject: Honour --quiet Change-Id: Ifec7f4274079d9c8f2a75bdedc8a253568a6ec78 --- morphlib/buildcommand.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index 35f55caf..3f505a2d 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -425,8 +425,9 @@ class BuildCommand(object): bar = morphlib.util.ProgressBar(name, expected_size, unit) - morphlib.util.copyfileobj(remote, local, - callback=report_progress) + cb = ((lambda count: None) if self.app.settings['quiet'] + else report_progress) + morphlib.util.copyfileobj(remote, local, callback=cb) def fetch_files(name, to_fetch): '''Fetch a set of files atomically. -- cgit v1.2.1