From fed07d414b6c6045b64c9493ad02cdd201ef27e7 Mon Sep 17 00:00:00 2001 From: Sebastien Luttringer <sebastien.luttringer@smartjog.com> Date: Thu, 27 Oct 2011 15:31:26 +0200 Subject: [PATCH] no progressbar in quiet mode --- installsystems/tools.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/installsystems/tools.py b/installsystems/tools.py index 826bae6..7e5ebdd 100644 --- a/installsystems/tools.py +++ b/installsystems/tools.py @@ -15,6 +15,7 @@ import time from subprocess import call, check_call, CalledProcessError +import installsystems from installsystems.progressbar import ProgressBar, Percentage, FileTransferSpeed from installsystems.progressbar import Bar, BouncingBar, ETA, UnknownLength from installsystems.tarball import Tarball @@ -216,6 +217,8 @@ class PipeFile(object): ''' Set this property to true enable progress bar ''' + if installsystems.quiet is True: + return if val == True and not hasattr(self, "_progressbar_started"): self._progressbar_started = True self._progressbar.start() -- GitLab