[PATCH] autocache patch for mock

Michael_E_Brown at Dell.com Michael_E_Brown at Dell.com
Tue May 16 22:03:23 UTC 2006


	Here is what I would consider to be a patch ready to check-in to
implement automatic caching of the mock buildroot. This feature is
disabled by default but can be turned on by the "--autocache" cli option
or the "use_cache" config file option.

	The only feature not implmented is selectable compression. This
can be implemented by changing mock-helper.c to check the file extension
and only compress if end is .bz2 or .gz. I have not implemented this,
after looking at the speed difference between compressed and
uncompressed. It turns out that uncompressed is slower, probably due to
disk IO bandwidth. (compressed tarball for fc5 is ~200MB. Uncompressed
tarball is ~500MB)

	Feedback appreciated.
--
Michael

 <<mock-autocache.patch>> 


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060516/254d98cf/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mock-autocache.patch
Type: application/octet-stream
Size: 6426 bytes
Desc: mock-autocache.patch
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060516/254d98cf/attachment.obj>


More information about the Fedora-buildsys-list mailing list