diff options
Diffstat (limited to 'morphlib/buildcommand.py')
-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. |