[PATCH] autocache patche -- resend, updated

Michael E Brown Michael_E_Brown at dell.com
Tue May 23 05:06:29 UTC 2006


	Here is a resend/consolidation of the autocache patches from last week.
I have combined the patches sent last week. It now defaults to gzip
format. I have also made the following fixes:
	-- integrate the mock permfix patch. This checks if cache was created
with UID != current user UID and adjusts permissions appropriately.
	-- Integrate a couple of small fixes regarding permissions.
_prep_install() happens before the above fix, so I have changed two
chown calls from config['chrootuser'] to use config['chrootuid'] (as
well as corresponding group/gid). This ensures that cached yum.conf is
always up-to-date. Previously, a cached yum.conf would never be updated
until the cache expired and was rebuilt. This change means cached builds
will never use wrong configuration.
	-- Use the -l option to tar when creating cache. This prevents tar from
saving /proc or /dev/pts/
	-- cmdline usability: --rebuildcache implies --autocache

Feedback and comments welcome...

Usage:
	Add --autocache to cmdline, or config_opts['use_cache'] = 1 to config
file to enable caching. Cache is automatically built and saved
to /var/lib/mock/root-cache/ on a per-config basis. Cache will be
rebuilt by default every 15 days, or when --rebuildcache is specified on
cmdline. This option is meant to be self-administering and low
overhead. 

--
Michael



-------------- next part --------------
A non-text attachment was scrubbed...
Name: mock-autocache-v6.patch
Type: text/x-patch
Size: 10872 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-buildsys-list/attachments/20060523/ed241ab8/attachment.bin>


More information about the Fedora-buildsys-list mailing list