rpms/yum/devel cli-ouput-fix.patch,NONE,1.1 yum.spec,1.169,1.170

Seth Vidal (skvidal) fedora-extras-commits at redhat.com
Thu Aug 23 12:48:22 UTC 2007


Author: skvidal

Update of /cvs/extras/rpms/yum/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv10761

Modified Files:
	yum.spec 
Added Files:
	cli-ouput-fix.patch 
Log Message:

add patch to fix bug #253955 - traceback during transaction if redirected
to a pipe


cli-ouput-fix.patch:

--- NEW FILE cli-ouput-fix.patch ---
--- a/output.py
+++ b/output.py
@@ -482,7 +482,7 @@ class YumCliRPMCallBack(RPMBaseCallback):
         else:
             percent = (te_current*100L)/te_total
         
-        if self.output and (sys.stdout.isatty() or bytes == total):
+        if self.output and (sys.stdout.isatty() or te_current == te_total):
             fmt = self._makefmt(percent, ts_current, ts_total)
             msg = fmt % (process, pkgname)
             if msg != self.lastmsg:


Index: yum.spec
===================================================================
RCS file: /cvs/extras/rpms/yum/devel/yum.spec,v
retrieving revision 1.169
retrieving revision 1.170
diff -u -r1.169 -r1.170
--- yum.spec	22 Aug 2007 21:31:42 -0000	1.169
+++ yum.spec	23 Aug 2007 12:47:49 -0000	1.170
@@ -10,6 +10,7 @@
 Source1: yum.conf.fedora
 Source2: yum-updatesd.conf.fedora
 Patch0: installonlyn-enable.patch
+Patch1: cli-ouput-fix.patch
 
 URL: http://linux.duke.edu/yum/
 BuildArch: noarch
@@ -45,6 +46,7 @@
 %prep
 %setup -q
 %patch0 -p0 -b .installonly
+%patch1 -p1 -b .cli-output
 
 %build
 make
@@ -90,6 +92,9 @@
 %dir /usr/lib/yum-plugins
 
 %changelog
+* Thu Aug 23 2007 Seth Vidal <skvidal at fedoraproject.org> 3.2.3-2
+- add patch to fix bug when yum is redirected to a pipe/file
+
 * Wed Aug 22 2007 Seth Vidal <skvidal at fedoraproject.org> 3.2.3-1
 - yum 3.2.3
 - add /var/lib/yum for persistent dir




More information about the fedora-extras-commits mailing list