[csw-devel] SF.net SVN: gar:[12124] csw/mgar/gar/v2/lib/python/checkpkg2.py

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Wed Dec 29 21:09:08 CET 2010


Revision: 12124
          http://gar.svn.sourceforge.net/gar/?rev=12124&view=rev
Author:   wahwah
Date:     2010-12-29 20:09:08 +0000 (Wed, 29 Dec 2010)

Log Message:
-----------
checkpkg: Progress bar only on a tty

To avoid polluting logs when running from cron.

Modified Paths:
--------------
    csw/mgar/gar/v2/lib/python/checkpkg2.py

Modified: csw/mgar/gar/v2/lib/python/checkpkg2.py
===================================================================
--- csw/mgar/gar/v2/lib/python/checkpkg2.py	2010-12-29 12:06:28 UTC (rev 12123)
+++ csw/mgar/gar/v2/lib/python/checkpkg2.py	2010-12-29 20:09:08 UTC (rev 12124)
@@ -134,7 +134,7 @@
         options.arch,
         options.catrel,
         debug=options.debug,
-        show_progress=(not options.quiet))
+        show_progress=(os.isatty(1) and not options.quiet))
     # Running the checks, reporting and exiting.
     exit_code, screen_report, tags_report = check_manager.Run()
     screen_report = unicode(screen_report)


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list