On Fri, 2009-11-13 at 16:20 -0500, Partha Aji wrote:
> Patch contains the lens + test case to handle /etc/postfix/access .
> 
> For example the following entry in /etc/postfix/access
> 
> 1.2.3 DISCARD Don't bother me
> 
> will get translated to
> 
> augtool> match /files/etc/postfix/access/1/*
> /files/etc/postfix/access/1/pattern = 1.2.3
> /files/etc/postfix/access/1/action = DISCARD
> /files/etc/postfix/access/1/parameters = Don't bother me

ACK. Committed, with some minor changes to formatting and replacing

@@ -10,7 +10,7 @@ module Postfix_Access =
   let indent = del /[ \t]*/ ""
 
   let comment = Util.comment
-  let empty   = [ del /[ \t]*#?[ \t]*\n/ "\n" ]
+  let empty   = Util.empty
 
   let char = /[^# \n\t]/
   let text =

David


_______________________________________________
augeas-devel mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/augeas-devel

Reply via email to