[yum-cvs] yum callback.py,1.26,1.27
Seth Vidal
skvidal at linux.duke.edu
Wed May 10 18:54:14 UTC 2006
Update of /home/groups/yum/cvs/yum
In directory login1.linux.duke.edu:/tmp/cvs-serv32742
Modified Files:
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.26
retrieving revision 1.27
diff -u -r1.26 -r1.27
--- callback.py 11 Apr 2006 21:37:23 -0000 1.26
+++ callback.py 10 May 2006 18:54:12 -0000 1.27
@@ -175,7 +175,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