[augeas-devel] [PATCH] Dhclient lens

David Lutterkort lutter at redhat.com
Wed Aug 27 22:39:01 UTC 2008


On Wed, 2008-08-27 at 22:22 +0200, Free Ekanayaka wrote:
> # HG changeset patch
> # User Free Ekanayaka <free at 64studio.com>
> # Date 1219868519 -7200
> # Node ID 715e29b93bc86728fdb541a59cfa48d42fdd52d1
> # Parent  cff4cb60ca2b80ae886db42376dd2fc9877b67b3
> Dhclient lens

Nice. Committed after fixing one minor nit spotted by the brandnew
typecheck of del:

> diff -r cff4cb60ca2b -r 715e29b93bc8 lenses/dhclient.aug
> --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
> +++ b/lenses/dhclient.aug	Wed Aug 27 22:21:59 2008 +0200

> +let sep_obr           = del /[ \t\n]*\{\n]*/" \{\n"
> +let sep_cbr           = del /[ \t\n]*\}/ " \}"

The string defaults for these need to be " {\n" and " }" ... seems
there's a bug[1] in the lexer when processing escape sequences. For now,
it's easiest to sidestep the bug ;)

David

[1] https://fedorahosted.org/augeas/ticket/12





More information about the augeas-devel mailing list