[Yum-devel] [PATCH] Do not output '\r' unless to a tty.
Zdeněk Pavlas
zpavlas at redhat.com
Mon Jul 11 08:33:48 UTC 2011
BZ 720088
---
output.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/output.py b/output.py
index c146abf..dae9aef 100755
--- a/output.py
+++ b/output.py
@@ -2366,6 +2366,7 @@ class YumCliRPMCallBack(RPMBaseCallback):
if self.output and (sys.stdout.isatty() or te_current == te_total):
(fmt, wid1, wid2) = self._makefmt(percent, ts_current, ts_total,
+ progress=sys.stdout.isatty(),
pkgname=pkgname, wid1=wid1)
msg = fmt % (utf8_width_fill(process, wid1, wid1),
utf8_width_fill(pkgname, wid2, wid2))
--
1.7.4.4
More information about the Yum-devel
mailing list