<div dir="ltr">Hi Marc,<br><br><br>Thanks for these patches :)<br><br>The include parts look good. I don't think the patch fixes the entry part though. The problem iirc is to parse lines like :<br><br>   someflag    # some comment<br>
<br><br>"[ key kw . (sep . sto_to_comment)? . (comment|eol) ] | comment" does not work because there is a space after the keyword without a value, and "comment" does not remove leading spaces. Maybe an option would be to add an optional sep in front of comment...<br>
<br><br><br>Raphaël<br><br><br><br><br><div class="gmail_quote">On Mon, Sep 29, 2008 at 12:15 PM, Marc Fournier <span dir="ltr"><<a href="mailto:marc.fournier@camptocamp.com">marc.fournier@camptocamp.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hello,<br>
<br>
I believe the attached patch to Raphaël's mysql lens fixes the problems<br>
mentioned in previous messages.<br>
<br>
I'm not sure if this is the exact implementation of what David suggested in<br>
his message of Wed, 03 Sep 2008 21:28:44. But the unit tests seem to work<br>
now and I have successfully been able to add/edit/remove flag items,<br>
key/value items and !include/!includedir from my my.cnf.<br>
<br>
Let me know if something seems wrong. It's my first attempt to modify a<br>
lensfile and I'm not sure to have the full understanding of whe way things<br>
work yet...<br>
<font color="#888888"><br>
Marc<br>
</font><div><div></div><div class="Wj3C7c"><br>
On Thu, Sep 11, 2008 at 06:35:42PM +0200, Raphaël Pinson wrote:<br>
> On Thu, Sep 11, 2008 at 4:51 PM, Marc Fournier <<a href="mailto:marc.fournier@camptocamp.com">marc.fournier@camptocamp.com</a><br>
> > wrote:<br>
><br>
> > Hello,<br>
> ><br>
> > I just wanted to draw your attention to the fact mysql also<br>
> > allows this type of records:<br>
> ><br>
> >  !include /path/to/file.cnf<br>
> ><br>
> > I suppose modifying the regex this way should work:<br>
> ><br>
> >  /include(dir)?/<br>
> ><br>
><br>
><br>
> Thanks. I was told about it but didn't add it yet. This change should do for<br>
> sure.<br>
><br>
><br>
><br>
> ><br>
> > I'm already trying out mysql.aug with puppet and i'm looking forward to<br>
> > see this lens included in augeas :-)<br>
><br>
><br>
> If you have any time to try and fix the double "?" issue, I would be really<br>
> happy to get a patch since I'm not focused on this lens right now.<br>
><br>
><br>
> Raphaël<br>
><br>
</div></div></blockquote></div><br></div>