[augeas-devel] [PATCH 0 of 4] [hosts.aug] Fix and improve hosts.aug

David Lutterkort dlutter at redhat.com
Tue Aug 12 18:38:51 UTC 2008


On Tue, 2008-08-12 at 17:34 +0200, Raphael Pinson wrote: 
> * Allow spaces in the end of lines
> * Allow indentation for all fields
> * Map comments in tree
> * Ignore empty comments and empty lines

ACK .. Committed, again folded into one patch. Test_hosts failed, I
fixed that, and modified it to also test that indentation is handled.

It also shows that there is a bug in how 'lns?' is processed during put
- it does show up in the output. I worked around that by making indent
'del /[ \t]*/ ""' and using indent without the '?'

There's a further bug in that 'del /[ \t]+/ ""' really needs to raise a
typecheck error

I filed those two in Trac so I won't forget to fix them.

David





More information about the augeas-devel mailing list