[Yum-devel] [PATCH] Eliminate redundant progress output

Ed Swierk eswierk at arastra.com
Fri Jan 26 00:47:56 UTC 2007


yum 3.0.1 generates redundant progress output while installing
packages: rpm calls back into yum for every file it touches, which
causes yum to refresh the progress indicator even if neither the
percentage nor the hash marks have changed.

When installing a package with ~23000 files (a complete kernel source
tree), yum writes about 1.8 Mbytes to stdout. This is pretty painful
when SSHing over a slow link or even when working locally using a
fancy terminal like the xemacs shell.

The attached patch suppresses redundant progress updates but does not
otherwise alter any functionality. With the patch, yum generates only
3756 bytes to stdout when installing the same package, a savings of
approximately 100% :-)

Feedback welcome.

--Ed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: yum-callback-output.patch
Type: text/x-patch
Size: 1881 bytes
Desc: not available
Url : http://lists.baseurl.org/pipermail/yum-devel/attachments/20070125/792bee30/attachment.bin 


More information about the Yum-devel mailing list