Skip to content
Snippets Groups Projects
Commit fed07d41 authored by Sebastien Luttringer's avatar Sebastien Luttringer
Browse files

no progressbar in quiet mode

parent 2d190595
No related branches found
No related tags found
No related merge requests found
...@@ -15,6 +15,7 @@ import time ...@@ -15,6 +15,7 @@ import time
from subprocess import call, check_call, CalledProcessError from subprocess import call, check_call, CalledProcessError
import installsystems
from installsystems.progressbar import ProgressBar, Percentage, FileTransferSpeed from installsystems.progressbar import ProgressBar, Percentage, FileTransferSpeed
from installsystems.progressbar import Bar, BouncingBar, ETA, UnknownLength from installsystems.progressbar import Bar, BouncingBar, ETA, UnknownLength
from installsystems.tarball import Tarball from installsystems.tarball import Tarball
...@@ -216,6 +217,8 @@ class PipeFile(object): ...@@ -216,6 +217,8 @@ class PipeFile(object):
''' '''
Set this property to true enable progress bar Set this property to true enable progress bar
''' '''
if installsystems.quiet is True:
return
if val == True and not hasattr(self, "_progressbar_started"): if val == True and not hasattr(self, "_progressbar_started"):
self._progressbar_started = True self._progressbar_started = True
self._progressbar.start() self._progressbar.start()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment