[augeas-devel] [Augeas] #133: Put ambiguity not raised
Augeas
trac at fedorahosted.org
Tue Aug 3 14:56:51 UTC 2010
#133: Put ambiguity not raised
-------------------------+--------------------------------------------------
Reporter: fgiraldeau | Owner: lutter
Type: defect | Status: new
Priority: major | Milestone: next
Component: Augeas | Version: devel
Resolution: | Keywords:
-------------------------+--------------------------------------------------
Changes (by fgiraldeau):
* version: 0.7.0 => devel
Comment:
Note: this problem is reproducible with the augeas devel master branch
Here is the little patch to highlight the change to the lens:
{{{
--- ../httpd/httpd.aug 2010-08-03 10:27:39.015247974 -0400
+++ ../httpd/httpd_ambig.aug 2010-08-03 10:28:06.496279708 -0400
@@ -1,4 +1,4 @@
-module Httpd =
+module Httpd_ambig =
autoload xfm
(* Helpers *)
@@ -18,7 +18,7 @@
let wskey (k:regexp) = del ws "" . key k
let params (param:regexp) = [ sep . label "param" . store param ]*
let sec (name:string) (body:lens) =
- [ wskey ("<" . name) . params secarg . del_str ">" . eol .
+ [ del ws "" . del_str "<" . key name . params secarg . del_str ">" .
eol .
body . del ws "" . del_str("</" . name . ">") . eol ]
(* Definitions *)
}}}
--
Ticket URL: <https://fedorahosted.org/augeas/ticket/133#comment:1>
Augeas <http://augeas.net/>
a configuration API
More information about the augeas-devel
mailing list