[augeas-devel] [Augeas] #175: small fixes/extensions to xorg.aug

Augeas trac at fedorahosted.org
Wed Jan 12 19:44:30 UTC 2011


#175: small fixes/extensions to xorg.aug
--------------------+-------------------------------------------------------
 Reporter:  omzzk   |       Owner:  lutter
     Type:  defect  |      Status:  new   
 Priority:  major   |   Milestone:  next  
Component:  Augeas  |     Version:  0.7.4 
 Keywords:          |  
--------------------+-------------------------------------------------------
 Hi all,

 with support from "raphink" on the IRC channel we found out that
 there is a small bug in the xorg.aug:

   the "positon" field in the "screen" section is optional and not
 mandatory.

 I also found out that there may be an "Extensions" section in the
 xorg.conf
 which is uncovered by the current xorg.aug, nVidea install scripts add
 such
 a section to the xorg.conf

 I'm attaching the patch and the whole xorg.aug file to this ticket.


 {{{
 -- augeas-0.7.4/lenses/xorg.aug 2010-07-03 02:40:43.000000000 +0200
 +++ xorg.aug    2010-11-28 18:46:48.000000000 +0100
 @@ -137,8 +137,8 @@
   *)
  let screen = [ indent . del /[sS]creen/ "Screen" . label "Screen" .
 sep_spc
                 . [ label "num" . store int . sep_spc ]?
 -               . quoted_string_val . sep_spc
 -               . [ label "position" . store to_eol ]
 +               . quoted_string_val
 +               . [ sep_spc . label "position" . store to_eol ]?
                 . eol ]

  (* View: input_device *)
 @@ -235,7 +235,7 @@
   *     >   DRI            DRI-specific configuration
   *     >   Vendor         Vendor-specific configuration
 *************************************************************************)
 -let section_re =
 /(Files|ServerFlags|Module|InputDevice|Device|VideoAdaptor|Monitor|Modes|Screen|ServerLayout|DRI|Vendor)/
 +let section_re =
 /(Extensions|Files|ServerFlags|Module|InputDevice|Device|VideoAdaptor|Monitor|Modes|Screen|ServerLayout|DRI|Vendor)/


  (************************************************************************
 }}}


 Kind regards, OMZZK.

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




More information about the augeas-devel mailing list