[augeas-devel] [Augeas] #344: add support for extmod subsection to xorg.conf lens

Augeas trac at fedorahosted.org
Fri May 17 08:19:34 UTC 2013


#344: add support for extmod subsection to xorg.conf lens
-------------------------+---------------------
 Reporter:  merkela      |       Owner:  lutter
     Type:  enhancement  |      Status:  new
 Priority:  minor        |   Milestone:  next
Component:  Augeas       |     Version:  0.9.0
 Keywords:               |  Blocked By:
 Blocking:               |
-------------------------+---------------------
 If the extmod subsection is present in the modules section, the parsing of
 xorg.conf fails. I suggest that the xorg.lens be extended like the
 following:

 --- /usr/share/augeas/lenses/dist/xorg.aug.orig 2011-07-25
 21:34:14.000000000 +0000
 +++ /usr/share/augeas/lenses/dist/xorg.aug      2013-05-17
 08:02:50.815731037 +0000
 @@ -209,6 +209,19 @@
                         . display_entry*
                         . indent . del "EndSubSection" "EndSubSection" .
 eol ]

 +(************************************************************************
 + * Group:                          EXTMOD SUBSECTION
 +
 *************************************************************************)
 +
 +let extmod_entry =  entry_str "Option"  /[oO]ption/ |
 +                    empty |
 +                    comment
 +
 +let extmod = [ indent . del "SubSection" "SubSection" . sep_spc
 +                       . sep_dquote . key "extmod" . sep_dquote
 +                       . eol
 +                       . extmod_entry*
 +                       . indent . del "EndSubSection" "EndSubSection" .
 eol ]

  (************************************************************************
   * Group:                       SECTIONS
 @@ -256,6 +269,7 @@
  let section_entry = option |
                      screen |
                      display |
 +                    extmod |
                      input_device |
                      driver |
                      identifier |

-- 
Ticket URL: <https://fedorahosted.org/augeas/ticket/344>
Augeas <http://augeas.net/>
a configuration API




More information about the augeas-devel mailing list