<!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 - RFC] unify config parsing</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">The recent changes to add default.cfg processing bumped the number of lines in main(). The following patch unifies all config file parsing into one small loop, removing about a dozen redundant lines of code. It also removes an unnecessary variable, config_path and uses options.configdir directly.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">This is an RFC because it changes mock behaviour in the following way, which requres discussion: The &quot;-r&quot; option is no longer required. You will not get an error message for a missing &quot;-r&quot; option. </FONT></P>

<P><FONT SIZE=2 FACE="Arial">I think this might be useful for the case where somebody sets up their 'default.cfg' to be a full config.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Comments?</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-cfgunify.patch&gt;&gt; </FONT>
</P>

</BODY>
</HTML>