Commit fed07d41 authored by Sebastien Luttringer's avatar Sebastien Luttringer
Browse files

no progressbar in quiet mode

parent 2d190595
Loading
Loading
Loading
Loading
+3 −0
Changes for installsystems/tools.py: 3 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -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()