diff options
author | Richard Ipsum <richardipsum@fastmail.co.uk> | 2016-04-25 20:21:41 +0100 |
---|---|---|
committer | Richard Ipsum <richardipsum@fastmail.co.uk> | 2016-04-25 19:57:20 +0000 |
commit | 3158e9b562e9b8ae41aaf5f90a4fb064cd87e66d (patch) | |
tree | 8ade3ecdc88dadf395734eaf7eb4f7123a4df5f3 | |
parent | 74e8d1b9aeb47d957d526250784d2c0087e59bf9 (diff) | |
download | morph-3158e9b562e9b8ae41aaf5f90a4fb064cd87e66d.tar.gz |
Honour --quiet
Change-Id: Ifec7f4274079d9c8f2a75bdedc8a253568a6ec78
-rw-r--r-- | morphlib/buildcommand.py | 5 |
1 files 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. |