[yum-cvs] yum callback.py,1.23,1.23.2.1

Seth Vidal skvidal at linux.duke.edu
Wed May 10 18:53:48 UTC 2006


Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv32671

Modified Files:
      Tag: yum-2_4_X
	callback.py 
Log Message:
check in Erich Focht <efocht at hpce.nec.com>'s callback patch for non-tty progress


Index: callback.py
===================================================================
RCS file: /home/groups/yum/cvs/yum/callback.py,v
retrieving revision 1.23
retrieving revision 1.23.2.1
diff -u -r1.23 -r1.23.2.1
--- callback.py	5 Aug 2005 06:32:16 -0000	1.23
+++ callback.py	10 May 2006 18:53:46 -0000	1.23.2.1
@@ -164,7 +164,7 @@
                         print "Error: invalid output state: %s for %s" % \
                            (txmbr.output_state, hdr['name'])
                     else:
-                        if self.output and sys.stdout.isatty():
+                        if self.output and (sys.stdout.isatty() or bytes == total):
                             fmt = self._makefmt(percent)
                             msg = fmt % (process, hdr['name'])
                             sys.stdout.write(msg)




More information about the Yum-cvs-commits mailing list