[yum-cvs] yum callback.py,1.25,1.25.2.1
Seth Vidal
skvidal at linux.duke.edu
Wed May 10 18:54:01 UTC 2006
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv32714
Modified Files:
Tag: yum-2_6_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.25
retrieving revision 1.25.2.1
diff -u -r1.25 -r1.25.2.1
--- callback.py 4 Oct 2005 19:00:24 -0000 1.25
+++ callback.py 10 May 2006 18:53:59 -0000 1.25.2.1
@@ -171,7 +171,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