<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.60">
<TITLE>[PATCH] autocache patch for mock</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">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 &quot;--autocache&quot; cli option or the &quot;use_cache&quot; config file option.</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">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)</FONT></P>

<P>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <FONT SIZE=2 FACE="Arial">Feedback appreciated.</FONT>

<BR><FONT SIZE=2 FACE="Arial">--</FONT>

<BR><FONT SIZE=2 FACE="Arial">Michael</FONT>
</P>

<P><FONT FACE="Arial" SIZE=2 COLOR="#000000"> &lt;&lt;mock-autocache.patch&gt;&gt; </FONT>
</P>
<BR>

</BODY>
</HTML>