[yum-cvs] repoquery.py

Tim Lauridsen timlau at linux.duke.edu
Wed Sep 5 06:39:58 UTC 2007


 repoquery.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 240d17d9c6b9a7e88ff78aa6b3ae9ac3b0dc4c95
Author: Tim Lauridsen <tla at rasmil.dk>
Date:   Wed Sep 5 08:33:27 2007 +0200

    Added patch by Bill Nottingham to silence progressbars in pipes

diff --git a/repoquery.py b/repoquery.py
index 1c69899..3aa1834 100755
--- a/repoquery.py
+++ b/repoquery.py
@@ -650,7 +650,7 @@ def main(args):
         repoq.doConfigSetup(debuglevel=initnoise)
         
     # Show what is going on, if --quiet is not set.
-    if not opts.quiet:
+    if not opts.quiet and sys.stdout.isatty():
         repoq.repos.setProgressBar(TextMeter(fo=sys.stdout))
         repoq.repos.callback = output.CacheProgressCallback()
         yumout = output.YumOutput()



More information about the Yum-cvs-commits mailing list