{"commit":"acb6181298f9a23c643c82a8d6f282e595ba91a1","old_file":"lenses\/hostname.aug","new_file":"lenses\/hostname.aug","old_contents":"(*\nModule: Hostname\n Parses \/etc\/hostname and \/etc\/mailname\n\nAuthor: Raphael Pinson \n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n*)\n\n\nmodule Hostname =\nautoload xfm\n\n(* View: lns *)\nlet lns = [ label \"hostname\" . store Rx.word . Util.eol ]\n\n(* View: filter *)\nlet filter = incl \"\/etc\/hostname\"\n . incl \"\/etc\/mailname\"\n\nlet xfm = transform lns filter\n","new_contents":"(*\nModule: Hostname\n Parses \/etc\/hostname and \/etc\/mailname\n\nAuthor: Raphael Pinson \n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n*)\n\n\nmodule Hostname =\nautoload xfm\n\n(* View: lns *)\nlet lns = [ label \"hostname\" . store Rx.word . Util.eol ] | Util.empty\n\n(* View: filter *)\nlet filter = incl \"\/etc\/hostname\"\n . incl \"\/etc\/mailname\"\n\nlet xfm = transform lns filter\n","subject":"Allow Creation of Hostname When File is Missing","message":"Allow Creation of Hostname When File is Missing\n\nWithin augtool, the current `hostname` lens does not allow you to create a hostname entry under the following circumstances:\r\n* \/etc\/hostname file is empty\r\n* \/etc\/hostname file does not exist\r\n\r\n:: \/etc\/hostname file is empty\r\n\r\nThere is no augtool command(s) that will allow you to add a hostname entry to an existing, but empty, file. Example:\r\n```\r\n$ sudo rm \/etc\/hostname\r\n$ sudo touch \/etc\/hostname\r\n$ sudo augtool\r\n\r\naugtool> set \/files\/etc\/hostname\/hostname myhostname\r\naugtool> save\r\nerror: Failed to execute command\r\nsaving failed (run 'errors' for details)\r\n\r\naugtool> errors\r\n\r\nError in \/etc\/hostname:1.0 (parse_skel_failed)\r\n Input string does not match at all\r\n Lens: \/usr\/share\/augeas\/lenses\/dist\/hostname.aug:16.10-.57:\r\n```\r\n\r\nAdditionally, you cannot remove the empty file using augtool:\r\n```\r\n$ sudo rm \/etc\/hostname\r\n$ sudo touch \/etc\/hostname\r\n$ sudo augtool rm \/files\/etc\/hostname\r\n$ ls -l \/etc\/hostname\r\n-rw-r--r-- 1 root root 0 Feb 19 12:39 \/etc\/hostname\r\n```\r\n\r\n:: \/etc\/hostname does not exist\r\n\r\nSimilar to the empty file case, you cannot create a hostname entry if the file does not already exist.\r\n\r\nYou can, however, create an empty file:\r\n```\r\n$ sudo rm \/etc\/hostname\r\n# You can create an empty file with clear or touch\r\n$ sudo augtool touch \/files\/etc\/hostname\r\n$ ls -l \/etc\/hostname\r\n-rw-r--r-- 1 root root 0 Feb 19 12:34 \/etc\/hostname\r\n```\r\n\r\nOf course, now that you have an empty file, you cannot create a hostname entry for it :( \r\n\r\nThis proposed change will allow you to at least create a hostname entry when the file does not already exist.\r\n\r\nIt also enables you to remove file, allowing for a deterministic approach:\r\n```\r\n$ sudo rm \/etc\/hostname\r\n$ sudo touch \/etc\/hostname\r\n$ sudo augtool rm \/files\/etc\/hostname\r\n$ ls -l \/etc\/hostname\r\nls: cannot access '\/etc\/hostname': No such file or directory\r\n$ sudo augtool set \/files\/etc\/hostname\/hostname myhostname\r\n$ ls -l \/etc\/hostname\r\n-rw-r--r-- 1 root root 11 Feb 19 12:44 \/etc\/hostname\r\n$ cat \/etc\/hostname\r\nmyhostname\r\n```\r\n\r\nNOTE: Its probably very possible to fix the lens to deal more of the edge cases, but this quick fix at least gives deterministic behavior if a rm\/set each time I want to configure the hostname.\r\n\r\nThank you for your consideration.\r\n\r\n-David Farrell","lang":"Augeas","license":"lgpl-2.1","repos":"mlichvar\/augeas,ptoscano\/augeas,ptoscano\/augeas,hercules-team\/augeas,mlichvar\/augeas,kunkku\/augeas,kunkku\/augeas,hercules-team\/augeas,mlichvar\/augeas,ptoscano\/augeas,kunkku\/augeas"} {"commit":"c55e6647654e0a8e5ca11d196f905227f7311b23","old_file":"spec\/inittab.aug","new_file":"spec\/inittab.aug","old_contents":"# Parsing \/etc\/inittab\n\n#map\n# grammar inittab\n# include '\/etc\/inittab' '\/system\/config\/inittab'\n#end\n\ngrammar inittab\n\n token SEP ':'\n token EOL '\\n'\n\n file: ( comment | record ) *\n\n comment: ( \/#.*?\\n\/ | \/[ \\t]*\\n\/ )\n\n record: counter 'record' . \n [ seq 'record' . \n [ label 'id' . store ..? ] .\n SEP .\n [ label 'runlevels' . store ..? ] .\n SEP .\n [ label 'action' . store ..? ] .\n SEP .\n [ label 'process' . store ..? ] .\n EOL\n ]\nend\n","new_contents":"# Parsing \/etc\/inittab\n\nmap\n grammar inittab\n include '\/etc\/inittab' '\/system\/config\/inittab'\nend\n\ngrammar inittab\n\n token SEP ':'\n token EOL '\\n'\n\n file: ( comment | record ) *\n\n comment: ( \/#.*?\\n\/ | \/[ \\t]*\\n\/ )\n\n record: [ seq 'record' . \n [ label 'id' . store ..? ] .\n SEP .\n [ label 'runlevels' . store ..? ] .\n SEP .\n [ label 'action' . store ..? ] .\n SEP .\n [ label 'process' . store ..? ] .\n EOL\n ]\nend\n","subject":"Remove bogus reset of 'record' counter","message":"Remove bogus reset of 'record' counter\n","lang":"Augeas","license":"lgpl-2.1","repos":"hercules-team\/augeas-do-not-use,hercules-team\/augeas-do-not-use,manandbytes\/augeas,raphink\/augeas,dafugg\/augeas,domcleal\/augeas,GeoffWilliams\/augeas,manandbytes\/augeas,raphink\/augeas,jtopjian\/augeas,kunkku\/augeas,MikaelSmith\/augeas,hercules-team\/augeas-do-not-use,bkearney\/augeas,lutter\/augeas,jtopjian\/augeas,kumy\/augeas,bkearney\/augeas,domcleal\/augeas,mchf\/augeas,kumy\/augeas,kunkku\/augeas,camptocamp\/augeas,mlichvar\/augeas,camptocamp\/augeas,jjlin\/augeas,pevalme\/augeas,bkearney\/augeas,ptoscano\/augeas,lutter\/augeas,kunkku\/augeas,jasperla\/augeas,mlichvar\/augeas,hercules-team\/augeas,GeoffWilliams\/augeas,jjlin\/augeas,pevalme\/augeas,domcleal\/augeas,mlichvar\/augeas,dafugg\/augeas,camptocamp\/augeas,kumy\/augeas,MikaelSmith\/augeas,camptocamp\/augeas,jjlin\/augeas,kumy\/augeas,hercules-team\/augeas,pevalme\/augeas,ptoscano\/augeas,lutter\/augeas,dafugg\/augeas,jasperla\/augeas,bkearney\/augeas,ptoscano\/augeas,mchf\/augeas"} {"commit":"5c2fa611519dd609b36123a36aca60ef00a03c79","old_file":"lenses\/tests\/test_puppetfileserver.aug","new_file":"lenses\/tests\/test_puppetfileserver.aug","old_contents":"(* Tests for the PuppetFileserver module *)\n\nmodule Test_puppetfileserver =\n\nlet fileserver = \"# This a comment\n\n[mount1]\n # Mount1 options\n path \/etc\/puppet\/files\/%h\n allow host.domain1.com\n allow *.domain2.com\n deny badhost.domain2.com\n[mount2]\n allow *\n deny *.evil.example.com\n deny badhost.domain2.com\n[mount3]\nallow * # Puppet #6026: same line comment\n# And trailing whitespace\nallow * \t\n\"\n\ntest PuppetFileserver.lns get fileserver =\n\t{ \"#comment\" = \"This a comment\" }\n\t{ }\n\t{ \"mount1\"\n\t\t{ \"#comment\" = \"Mount1 options\" }\n\t\t{ \"path\" = \"\/etc\/puppet\/files\/%h\" }\n\t\t{ \"allow\" = \"host.domain1.com\" }\n\t\t{ \"allow\" = \"*.domain2.com\" }\n\t\t{ \"deny\" = \"badhost.domain2.com\" }\n\t}\n\t{ \"mount2\"\n\t\t{ \"allow\" = \"*\" }\n\t\t{ \"deny\" = \"*.evil.example.com\" }\n\t\t{ \"deny\" = \"badhost.domain2.com\" }\n\t}\n\t{ \"mount3\"\n\t\t{ \"allow\" = \"*\"\n\t\t\t{ \"#comment\" = \"Puppet #6026: same line comment\" } }\n\t\t{ \"#comment\" = \"And trailing whitespace\" }\n\t\t{ \"allow\" = \"*\" }\n\t}\n","new_contents":"(* Tests for the PuppetFileserver module *)\n\nmodule Test_puppetfileserver =\n\nlet fileserver = \"# This a comment\n\n[mount1]\n # Mount1 options\n path \/etc\/puppet\/files\/%h\n allow host.domain1.com\n allow *.domain2.com\n deny badhost.domain2.com\n[mount2]\n allow *\n deny *.evil.example.com\n deny badhost.domain2.com\n[mount3]\nallow * # Puppet #6026: same line comment\n# And trailing whitespace\nallow *\n\"\n\ntest PuppetFileserver.lns get fileserver =\n\t{ \"#comment\" = \"This a comment\" }\n\t{ }\n\t{ \"mount1\"\n\t\t{ \"#comment\" = \"Mount1 options\" }\n\t\t{ \"path\" = \"\/etc\/puppet\/files\/%h\" }\n\t\t{ \"allow\" = \"host.domain1.com\" }\n\t\t{ \"allow\" = \"*.domain2.com\" }\n\t\t{ \"deny\" = \"badhost.domain2.com\" }\n\t}\n\t{ \"mount2\"\n\t\t{ \"allow\" = \"*\" }\n\t\t{ \"deny\" = \"*.evil.example.com\" }\n\t\t{ \"deny\" = \"badhost.domain2.com\" }\n\t}\n\t{ \"mount3\"\n\t\t{ \"allow\" = \"*\"\n\t\t\t{ \"#comment\" = \"Puppet #6026: same line comment\" } }\n\t\t{ \"#comment\" = \"And trailing whitespace\" }\n\t\t{ \"allow\" = \"*\" }\n\t}\n","subject":"Remove trailing white spaces from puppet test","message":"Remove trailing white spaces from puppet test\n\nTrailing white lines are valid in a puppet file, but the test is rejected when\npushing to master git repository.\n\nremote: lenses\/tests\/test_puppetfileserver.aug:20: trailing whitespace.\nremote: +allow *\nremote: error: hook declined to update refs\/heads\/master\n ! [remote rejected] master -> master (hook declined)\n\nRemoving white space for now.\n","lang":"Augeas","license":"lgpl-2.1","repos":"ptoscano\/augeas,lutter\/augeas,jasperla\/augeas,domcleal\/augeas,kunkku\/augeas,lutter\/augeas,jjlin\/augeas,dafugg\/augeas,manandbytes\/augeas,dafugg\/augeas,hercules-team\/augeas-do-not-use,hercules-team\/augeas,pevalme\/augeas,raphink\/augeas,dafugg\/augeas,jtopjian\/augeas,jjlin\/augeas,GeoffWilliams\/augeas,MikaelSmith\/augeas,ptoscano\/augeas,pevalme\/augeas,MikaelSmith\/augeas,kumy\/augeas,lutter\/augeas,jasperla\/augeas,kumy\/augeas,kunkku\/augeas,manandbytes\/augeas,jjlin\/augeas,mlichvar\/augeas,kumy\/augeas,mchf\/augeas,mlichvar\/augeas,kunkku\/augeas,kumy\/augeas,jtopjian\/augeas,hercules-team\/augeas-do-not-use,mchf\/augeas,hercules-team\/augeas-do-not-use,domcleal\/augeas,pevalme\/augeas,GeoffWilliams\/augeas,mlichvar\/augeas,hercules-team\/augeas,ptoscano\/augeas,domcleal\/augeas,raphink\/augeas"} {"commit":"dc80208efcc59c2fa3b207318e99da65b4ea61bb","old_file":"lenses\/tests\/test_updatedb.aug","new_file":"lenses\/tests\/test_updatedb.aug","old_contents":"(*\nModule: Test_UpdateDB\n Provides unit tests and examples for the lens.\n*)\nmodule Test_UpdateDB =\n\n(* Test: UpdateDB.lns\n Simple get test *)\ntest UpdateDB.lns get \"# A comment\nPRUNEPATHS=\\\"\/tmp \/var\/spool \/media \/home\/.ecryptfs\\\"\nPRUNEFS=\\\"NFS nfs nfs4 rpc_pipefs\\\"\nPRUNE_BIND_MOUNTS=\\\"yes\\\"\\n\" =\n { \"#comment\" = \"A comment\" }\n { \"PRUNEPATHS\"\n { \"entry\" = \"\/tmp\" }\n { \"entry\" = \"\/var\/spool\" }\n { \"entry\" = \"\/media\" }\n { \"entry\" = \"\/home\/.ecryptfs\" }\n }\n { \"PRUNEFS\"\n { \"entry\" = \"NFS\" }\n { \"entry\" = \"nfs\" }\n { \"entry\" = \"nfs4\" }\n { \"entry\" = \"rpc_pipefs\" }\n }\n { \"PRUNE_BIND_MOUNTS\" = \"yes\" }\n\n(* Test: UpdateDB.lns\n Adding to a list *)\ntest UpdateDB.lns put \"PRUNEFS=\\\"NFS nfs nfs4 rpc_pipefs\\\"\\n\"\n after set \"\/PRUNEFS\/entry[last()+1]\" \"ecryptfs\" =\n\"PRUNEFS=\\\"NFS nfs nfs4 rpc_pipefs ecryptfs\\\"\\n\"\n","new_contents":"(*\nModule: Test_UpdateDB\n Provides unit tests and examples for the lens.\n*)\nmodule Test_UpdateDB =\n\n(* Test: UpdateDB.lns\n Simple get test *)\ntest UpdateDB.lns get \"# A comment\nPRUNEPATHS=\\\"\/tmp \/var\/spool \/media \/home\/.ecryptfs\\\"\nPRUNEFS= \\\"NFS nfs nfs4 rpc_pipefs\\\"\nPRUNE_BIND_MOUNTS = \\\"yes\\\"\\n\" =\n { \"#comment\" = \"A comment\" }\n { \"PRUNEPATHS\"\n { \"entry\" = \"\/tmp\" }\n { \"entry\" = \"\/var\/spool\" }\n { \"entry\" = \"\/media\" }\n { \"entry\" = \"\/home\/.ecryptfs\" }\n }\n { \"PRUNEFS\"\n { \"entry\" = \"NFS\" }\n { \"entry\" = \"nfs\" }\n { \"entry\" = \"nfs4\" }\n { \"entry\" = \"rpc_pipefs\" }\n }\n { \"PRUNE_BIND_MOUNTS\" = \"yes\" }\n\n(* Test: UpdateDB.lns\n Adding to a list *)\ntest UpdateDB.lns put \"PRUNEFS=\\\"NFS nfs nfs4 rpc_pipefs\\\"\\n\"\n after set \"\/PRUNEFS\/entry[last()+1]\" \"ecryptfs\" =\n\"PRUNEFS=\\\"NFS nfs nfs4 rpc_pipefs ecryptfs\\\"\\n\"\n","subject":"Update tests to ensure spaces around = are OK","message":"UpdateDB: Update tests to ensure spaces around = are OK\n","lang":"Augeas","license":"lgpl-2.1","repos":"raphink\/augeas,jjlin\/augeas,ptoscano\/augeas,jtopjian\/augeas,mchf\/augeas,kunkku\/augeas,MikaelSmith\/augeas,lutter\/augeas,dafugg\/augeas,mlichvar\/augeas,kunkku\/augeas,mlichvar\/augeas,manandbytes\/augeas,GeoffWilliams\/augeas,pevalme\/augeas,jasperla\/augeas,ptoscano\/augeas,jjlin\/augeas,mlichvar\/augeas,hercules-team\/augeas,mchf\/augeas,pevalme\/augeas,dafugg\/augeas,pevalme\/augeas,MikaelSmith\/augeas,manandbytes\/augeas,lutter\/augeas,GeoffWilliams\/augeas,jjlin\/augeas,jasperla\/augeas,hercules-team\/augeas,dafugg\/augeas,jtopjian\/augeas,lutter\/augeas,kunkku\/augeas,ptoscano\/augeas,raphink\/augeas"} {"commit":"d6defcdd21090434fdc2b52088834102217f7e1b","old_file":"lenses\/sep.aug","new_file":"lenses\/sep.aug","old_contents":"(*\nModule: Sep\n Generic separators to build lenses\n\nAuthor: Raphael Pinson \n\nAbout: License\n This file is licensed under the LGPLv2+, like the rest of Augeas.\n*)\n\n\nmodule Sep =\n\nlet colon = Util.del_str \":\"\nlet comma = Util.del_str \",\"\nlet space = del Rx.space \" \"\nlet tab = del Rx.space \"\\t\"\nlet opt_space = del Rx.opt_space \"\"\nlet opt_tab = del Rx.opt_space \"\\t\"\n\n","new_contents":"(*\nModule: Sep\n Generic separators to build lenses\n\nAuthor: Raphael Pinson \n\nAbout: License\n This file is licensed under the LGPLv2+, like the rest of Augeas.\n*)\n\n\nmodule Sep =\n\nlet colon = Util.del_str \":\"\nlet comma = Util.del_str \",\"\nlet equal = Util.del_str \"=\"\nlet space = del Rx.space \" \"\nlet tab = del Rx.space \"\\t\"\nlet opt_space = del Rx.opt_space \"\"\nlet opt_tab = del Rx.opt_space \"\\t\"\n\n","subject":"Add Sep.equal, used in nrpe.aug","message":"Add Sep.equal, used in nrpe.aug\n","lang":"Augeas","license":"lgpl-2.1","repos":"hercules-team\/augeas-do-not-use,mchf\/augeas,lutter\/augeas,dafugg\/augeas,ptoscano\/augeas,jjlin\/augeas,dafugg\/augeas,GeoffWilliams\/augeas,hercules-team\/augeas-do-not-use,jjlin\/augeas,jasperla\/augeas,GeoffWilliams\/augeas,jtopjian\/augeas,hercules-team\/augeas,kumy\/augeas,jtopjian\/augeas,kumy\/augeas,hercules-team\/augeas,domcleal\/augeas,MikaelSmith\/augeas,kunkku\/augeas,manandbytes\/augeas,raphink\/augeas,kunkku\/augeas,lutter\/augeas,dafugg\/augeas,kunkku\/augeas,mlichvar\/augeas,domcleal\/augeas,kumy\/augeas,hercules-team\/augeas-do-not-use,ptoscano\/augeas,raphink\/augeas,pevalme\/augeas,jasperla\/augeas,mchf\/augeas,lutter\/augeas,MikaelSmith\/augeas,mlichvar\/augeas,kumy\/augeas,domcleal\/augeas,pevalme\/augeas,pevalme\/augeas,manandbytes\/augeas,mlichvar\/augeas,jjlin\/augeas,ptoscano\/augeas"} {"commit":"b740b0a14d469f57b50a4a258c275a53ddbe3953","old_file":"tests\/modules\/fail_union_atype.aug","new_file":"tests\/modules\/fail_union_atype.aug","old_contents":"module Fail_union_atype =\n (* This is illegal, otherwise we don't know which alternative *)\n (* to take for a tree { \"a\" = \"?\" } *)\n\n let del_str (s:string) = del s s\n\n let lns = [ key \/a\/ . store \/b\/ . del_str \" (l)\" \n | [ key \/a\/ . store \/c\/ . del_str \" (r)\" ]\n\n (* To make this a passing test, make sure that this also works: *)\n (* test lns put \"ac (r)\" after set \"a\" \"b\" = \"ab (l)\" *)\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","new_contents":"module Fail_union_atype =\n (* This is illegal, otherwise we don't know which alternative *)\n (* to take for a tree { \"a\" = \"?\" } *)\n\n let del_str (s:string) = del s s\n\n let lns = [ key \/a\/ . store \/b\/ . del_str \" (l)\" ]\n | [ key \/a\/ . store \/c\/ . del_str \" (r)\" ]\n\n (* To make this a passing test, make sure that this also works: *)\n (* test lns put \"ac (r)\" after set \"a\" \"b\" = \"ab (l)\" *)\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","subject":"Fix syntax error in test","message":"Fix syntax error in test\n","lang":"Augeas","license":"lgpl-2.1","repos":"jasperla\/augeas,GeoffWilliams\/augeas,kumy\/augeas,MikaelSmith\/augeas,kunkku\/augeas,jjlin\/augeas,mchf\/augeas,MikaelSmith\/augeas,domcleal\/augeas,ptoscano\/augeas,pevalme\/augeas,camptocamp\/augeas,manandbytes\/augeas,camptocamp\/augeas,kumy\/augeas,ptoscano\/augeas,raphink\/augeas,bkearney\/augeas,lutter\/augeas,hercules-team\/augeas-do-not-use,camptocamp\/augeas,kunkku\/augeas,ptoscano\/augeas,bkearney\/augeas,jtopjian\/augeas,lutter\/augeas,jasperla\/augeas,camptocamp\/augeas,pevalme\/augeas,jtopjian\/augeas,dafugg\/augeas,GeoffWilliams\/augeas,mlichvar\/augeas,pevalme\/augeas,domcleal\/augeas,raphink\/augeas,hercules-team\/augeas-do-not-use,domcleal\/augeas,manandbytes\/augeas,bkearney\/augeas,jjlin\/augeas,kumy\/augeas,jjlin\/augeas,hercules-team\/augeas,mlichvar\/augeas,mchf\/augeas,dafugg\/augeas,hercules-team\/augeas,lutter\/augeas,bkearney\/augeas,mlichvar\/augeas,hercules-team\/augeas-do-not-use,kumy\/augeas,dafugg\/augeas,kunkku\/augeas"} {"commit":"b6943ab317767f21f820459d75bbb0ebc7c20ebd","old_file":"tests\/modules\/pass_subtree_growth.aug","new_file":"tests\/modules\/pass_subtree_growth.aug","old_contents":"module Pass_subtree_growth =\n\n (* Make sure that a subtree that is not the lowest one does indeed *)\n (* grow the tree, instead of just setting the label of an enclosed *)\n (* subtree. This is only a problem if the enclosed subtree does *)\n (* not have a label *)\n\n let lns = [ label \"outer\" . [ store \/a\/ ] ]\n\n (* The improper result is { \"outer\" = \"a\" } *)\n test lns get \"a\" = { \"outer\" { = \"a\" } }\n\n test lns put \"a\" after set \"outer\" \"b\" = \"b\"\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","new_contents":"module Pass_subtree_growth =\n\n (* Make sure that a subtree that is not the lowest one does indeed *)\n (* grow the tree, instead of just setting the label of an enclosed *)\n (* subtree. This is only a problem if the enclosed subtree does *)\n (* not have a label *)\n\n let lns = [ label \"outer\" . [ store \/a\/ ] ]\n\n (* The improper result is { \"outer\" = \"a\" } *)\n test lns get \"a\" = { \"outer\" { = \"a\" } }\n\n (* This produces a tree { \"outer\" = \"b\" { = \"a\" } } *)\n (* but the value for \"outer\" is never used in put *)\n (* (That should probably be flagged as an error separately) *)\n test lns put \"a\" after set \"outer\" \"b\" = \"a\"\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","subject":"Fix put test - it was checking for hte wrong result","message":"Fix put test - it was checking for hte wrong result\n","lang":"Augeas","license":"lgpl-2.1","repos":"pevalme\/augeas,dafugg\/augeas,GeoffWilliams\/augeas,jjlin\/augeas,mchf\/augeas,jtopjian\/augeas,dafugg\/augeas,mlichvar\/augeas,kunkku\/augeas,ptoscano\/augeas,camptocamp\/augeas,jasperla\/augeas,MikaelSmith\/augeas,lutter\/augeas,bkearney\/augeas,hercules-team\/augeas-do-not-use,dafugg\/augeas,kumy\/augeas,hercules-team\/augeas-do-not-use,kunkku\/augeas,camptocamp\/augeas,ptoscano\/augeas,mlichvar\/augeas,domcleal\/augeas,hercules-team\/augeas-do-not-use,camptocamp\/augeas,manandbytes\/augeas,jasperla\/augeas,mchf\/augeas,ptoscano\/augeas,bkearney\/augeas,kumy\/augeas,kumy\/augeas,lutter\/augeas,bkearney\/augeas,manandbytes\/augeas,pevalme\/augeas,hercules-team\/augeas,bkearney\/augeas,jjlin\/augeas,raphink\/augeas,kunkku\/augeas,domcleal\/augeas,domcleal\/augeas,MikaelSmith\/augeas,mlichvar\/augeas,pevalme\/augeas,kumy\/augeas,jtopjian\/augeas,jjlin\/augeas,raphink\/augeas,GeoffWilliams\/augeas,lutter\/augeas,camptocamp\/augeas,hercules-team\/augeas"} {"commit":"7e5905455be25dc9fe59f18bca843fc2e3dee324","old_file":"modules\/nagios\/lib\/augeas\/lenses\/nagioscfg.aug","new_file":"modules\/nagios\/lib\/augeas\/lenses\/nagioscfg.aug","old_contents":"","new_contents":"(*\nModule: NagiosConfig\n Parses \/etc\/{nagios{3,},icinga\/*.cfg\n\nAuthors: Sebastien Aperghis-Tramoni \n Raphaƫl Pinson \n\nAbout: License\n This file is licenced under the LGPL v2+, like the rest of Augeas.\n\nAbout: Lens Usage\n To be documented\n\nAbout: Configuration files\n This lens applies to \/etc\/{nagios{3,},icinga\/*.cfg. See .\n*)\n\nmodule NagiosCfg =\nautoload xfm\n\n(************************************************************************\n * Group: Utility variables\/functions\n ************************************************************************)\n(* View: param_def\n define a field *)\nlet param_def =\n let space_in = \/[^ \\t\\n][^\\n=]*[^ \\t\\n]|[^ \\t\\n]\/\n in key \/[A-Za-z0-9_]+\/\n . Sep.space_equal\n . store space_in\n\n(* View: macro_def\n Macro line, as used in resource.cfg *)\nlet macro_def =\n let macro = \/\\$[A-Za-z0-9]+\\$\/\n in let macro_decl = Rx.word | Rx.fspath\n in key macro . Sep.space_equal . store macro_decl\n\n(************************************************************************\n * Group: Entries\n ************************************************************************)\n(* View: param\n Params can have sub params *)\nlet param =\n [ Util.indent . param_def\n . [ Sep.space . param_def ]*\n . Util.eol ]\n\n(* View: macro *)\nlet macro = [ Util.indent . macro_def . Util.eol ]\n\n(************************************************************************\n * Group: Lens\n ************************************************************************)\n(* View: entry\n Define the accepted entries, such as param for regular configuration\n files, and macro for resources.cfg .*)\nlet entry = param\n\t | macro\n\n(* View: lns\n main structure *)\nlet lns = ( Util.empty | Util.comment | entry )*\n\n(* View: filter *)\nlet filter = incl \"\/etc\/nagios3\/*.cfg\"\n . incl \"\/etc\/nagios\/*.cfg\"\n\t . incl \"\/etc\/icinga\/*.cfg\"\n\t . excl \"\/etc\/nagios3\/commands.cfg\"\n\t . excl \"\/etc\/nagios\/commands.cfg\"\n\t . excl \"\/etc\/nagios\/nrpe.cfg\"\n\t . incl \"\/etc\/icinga\/commands.cfg\"\n\nlet xfm = transform lns filter\n","subject":"Add more recent nagios lens","message":"Add more recent nagios lens\n","lang":"Augeas","license":"apache-2.0","repos":"ScottWales\/base-vm,ScottWales\/dataportal"} {"commit":"4a144018fd2ec1fd9bef670e1081a4deb88bb90f","old_file":"lenses\/tests\/test_radicale.aug","new_file":"lenses\/tests\/test_radicale.aug","old_contents":"","new_contents":"module Test_radicale =\n\n let conf = \"\n[server]\n\n[encoding]\n\n[well-known]\n\n[auth]\n\n[git]\n\n[rights]\n\n[storage]\n\n[logging]\n\n[headers]\n\n\"\n\n test Radicale.lns get conf =\n {}\n { \"server\"\n {} }\n { \"encoding\"\n {} }\n { \"well-known\"\n {} }\n { \"auth\"\n {} }\n { \"git\"\n {} }\n { \"rights\"\n {} }\n { \"storage\"\n {} }\n { \"logging\"\n {} }\n { \"headers\"\n {} }\n\n test Radicale.lns put conf after\n set \"server\/hosts\" \"127.0.0.1:5232, [::1]:5232\";\n set \"server\/base_prefix\" \"\/radicale\/\";\n set \"well-known\/caldav\" \"\/radicale\/%(user)s\/caldav\/\";\n set \"well-known\/cardav\" \"\/radicale\/%(user)s\/carddav\/\";\n set \"auth\/type\" \"remote_user\";\n set \"rights\/type\" \"owner_only\"\n = \"\n[server]\n\nhosts=127.0.0.1:5232, [::1]:5232\nbase_prefix=\/radicale\/\n[encoding]\n\n[well-known]\n\ncaldav=\/radicale\/%(user)s\/caldav\/\ncardav=\/radicale\/%(user)s\/carddav\/\n[auth]\n\ntype=remote_user\n[git]\n\n[rights]\n\ntype=owner_only\n[storage]\n\n[logging]\n\n[headers]\n\n\"\n","subject":"Add test for radicale lens","message":"Add test for radicale lens\n","lang":"Augeas","license":"lgpl-2.1","repos":"kunkku\/augeas,ptoscano\/augeas,lutter\/augeas,kunkku\/augeas,hercules-team\/augeas,pevalme\/augeas,hercules-team\/augeas,mlichvar\/augeas,mlichvar\/augeas,ptoscano\/augeas,ptoscano\/augeas,kunkku\/augeas,pevalme\/augeas,manandbytes\/augeas,mlichvar\/augeas,lutter\/augeas,mchf\/augeas,manandbytes\/augeas,lutter\/augeas,pevalme\/augeas,mchf\/augeas"} {"commit":"bcd545bc8388de5111b49eda2c40202e8238bac0","old_file":"files\/lenses\/epsg.aug","new_file":"files\/lenses\/epsg.aug","old_contents":"","new_contents":"module EPSG =\n\nlet proj = [ key \/[^\\\/= \\t\\n]+\/ . (Sep.equal . store Rx.no_spaces)? ]\n\nlet entry = [ Util.del_str \"<\" . key Rx.integer . Util.del_str \">\"\n . Sep.space . Build.opt_list proj Sep.space . Sep.space\n . Util.del_str \"<>\" . Util.eol ]\n\nlet lns = (Util.empty | Util.comment | entry)*\n\n","subject":"Add basic EPSG augeas lens","message":"Add basic EPSG augeas lens\n","lang":"Augeas","license":"apache-2.0","repos":"camptocamp\/puppet-proj"} {"commit":"c3bd786d9a17bcdb2334740eca06abf1345762cf","old_file":"lenses\/fstab.aug","new_file":"lenses\/fstab.aug","old_contents":"(* Parsing \/etc\/fstab *)\n\nmodule Fstab =\n autoload xfm\n\n let sep_tab = Sep.tab\n let sep_spc = Sep.space\n let comma = Sep.comma\n let eol = Util.eol\n\n let comment = Util.comment\n let empty = Util.empty\n\n let word = Rx.neg1\n let spec = \/[^,# \\n\\t][^ \\n\\t]*\/\n\n let comma_sep_list (l:string) =\n let lns = [ label l . store word ] in\n Build.opt_list lns comma\n\n let record = [ seq \"mntent\" .\n [ label \"spec\" . store spec ] . sep_tab .\n [ label \"file\" . store word ] . sep_tab .\n comma_sep_list \"vfstype\" . sep_tab .\n comma_sep_list \"opt\" .\n (sep_tab . [ label \"dump\" . store \/[0-9]+\/ ] .\n ( sep_spc . [ label \"passno\" . store \/[0-9]+\/ ])? )?\n . eol ]\n\n let lns = ( empty | comment | record ) *\n\n let xfm = transform lns (incl \"\/etc\/fstab\")\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","new_contents":"(* Parsing \/etc\/fstab *)\n\nmodule Fstab =\n autoload xfm\n\n let sep_tab = Sep.tab\n let sep_spc = Sep.space\n let comma = Sep.comma\n let eol = Util.eol\n\n let comment = Util.comment\n let empty = Util.empty\n\n let word = Rx.neg1\n let spec = \/[^,# \\n\\t][^ \\n\\t]*\/\n\n let comma_sep_list (l:string) =\n let lns = [ label l . store word ] in\n Build.opt_list lns comma\n\n let record = [ seq \"mntent\" .\n [ label \"spec\" . store spec ] . sep_tab .\n [ label \"file\" . store word ] . sep_tab .\n comma_sep_list \"vfstype\" . sep_tab .\n comma_sep_list \"opt\" .\n (sep_tab . [ label \"dump\" . store \/[0-9]+\/ ] .\n ( sep_spc . [ label \"passno\" . store \/[0-9]+\/ ])? )?\n . eol ]\n\n let lns = ( empty | comment | record ) *\n let filter = (incl \"\/etc\/fstab\")\n . (incl \"\/etc\/mtab\")\n\n let xfm = transform lns filter\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","subject":"Add \/etc\/mtab to known files","message":"Add \/etc\/mtab to known files\n","lang":"Augeas","license":"lgpl-2.1","repos":"jjlin\/augeas,lutter\/augeas,hercules-team\/augeas-do-not-use,dafugg\/augeas,jjlin\/augeas,manandbytes\/augeas,dafugg\/augeas,MikaelSmith\/augeas,jjlin\/augeas,mchf\/augeas,jtopjian\/augeas,lutter\/augeas,raphink\/augeas,domcleal\/augeas,hercules-team\/augeas,dafugg\/augeas,hercules-team\/augeas-do-not-use,ptoscano\/augeas,domcleal\/augeas,jtopjian\/augeas,hercules-team\/augeas,hercules-team\/augeas-do-not-use,kumy\/augeas,kunkku\/augeas,MikaelSmith\/augeas,ptoscano\/augeas,jasperla\/augeas,kunkku\/augeas,mlichvar\/augeas,domcleal\/augeas,pevalme\/augeas,pevalme\/augeas,kumy\/augeas,GeoffWilliams\/augeas,ptoscano\/augeas,manandbytes\/augeas,lutter\/augeas,mlichvar\/augeas,mchf\/augeas,GeoffWilliams\/augeas,kumy\/augeas,kumy\/augeas,pevalme\/augeas,jasperla\/augeas,mlichvar\/augeas,raphink\/augeas,kunkku\/augeas"} {"commit":"417e094dd53932acfc6465238f96afb4d914cd24","old_file":"spec\/pam.aug","new_file":"spec\/pam.aug","old_contents":"# Parsing \/etc\/inittab\n\nmap\n grammar pam\n # We really need to be able to exclude some files, like\n # backup files and .rpmsave files\n include '\/etc\/pam.d\/*' '\/system\/config\/pam' $basename\nend\n\ngrammar pam\n\n token SEP \/[ \\t]+\/ = '\\t'\n token EOL '\\n'\n token CONTROL \/(\\[[^\\]]*\\]|[^ \\t]+)\/ = 'none'\n token POUND_TO_EOL \/#.*\\n\/ = '# '\n\n file: ( comment | record ) *\n\n comment: ( \/#.*?\\n\/ | \/[ \\t]*\\n\/ )\n\n record: [ seq 'record' .\n [ label 'type' . store ... ] .\n SEP .\n [ label 'control' . store CONTROL] .\n SEP .\n [ label 'module' . store ... ] .\n ( [ SEP . label 'opts' . store ... ] )? .\n EOL\n ]\nend\n","new_contents":"# Parsing \/etc\/inittab\n\nmap\n grammar pam\n # We really need to be able to exclude some files, like\n # backup files and .rpmsave files\n include '\/etc\/pam.d\/*' '\/system\/config\/pam' $basename\nend\n\ngrammar pam\n\n token SEP \/[ \\t]+\/ = '\\t'\n token EOL '\\n'\n token CONTROL \/(\\[[^\\]]*\\]|[^ \\t]+)\/ = 'none'\n token POUND_TO_EOL \/#.*\\n\/ = '# '\n\n file: ( comment | record ) *\n\n comment: [ ( \/#.*?\\n\/ | \/[ \\t]*\\n\/ ) ]\n\n record: [ seq 'record' .\n [ label 'type' . store ... ] .\n SEP .\n [ label 'control' . store CONTROL] .\n SEP .\n [ label 'module' . store ... ] .\n ( [ SEP . label 'opts' . store ... ] )? .\n EOL\n ]\nend\n","subject":"Store comments in subtrees so they are restored properly","message":"Store comments in subtrees so they are restored properly\n","lang":"Augeas","license":"lgpl-2.1","repos":"kumy\/augeas,dafugg\/augeas,MikaelSmith\/augeas,hercules-team\/augeas-do-not-use,jjlin\/augeas,pevalme\/augeas,mchf\/augeas,jtopjian\/augeas,lutter\/augeas,domcleal\/augeas,hercules-team\/augeas,ptoscano\/augeas,dafugg\/augeas,bkearney\/augeas,raphink\/augeas,ptoscano\/augeas,GeoffWilliams\/augeas,mlichvar\/augeas,ptoscano\/augeas,camptocamp\/augeas,kumy\/augeas,GeoffWilliams\/augeas,kumy\/augeas,camptocamp\/augeas,kunkku\/augeas,camptocamp\/augeas,kunkku\/augeas,jasperla\/augeas,bkearney\/augeas,kumy\/augeas,lutter\/augeas,bkearney\/augeas,camptocamp\/augeas,jjlin\/augeas,kunkku\/augeas,hercules-team\/augeas-do-not-use,pevalme\/augeas,mlichvar\/augeas,domcleal\/augeas,pevalme\/augeas,lutter\/augeas,hercules-team\/augeas,MikaelSmith\/augeas,mchf\/augeas,hercules-team\/augeas-do-not-use,bkearney\/augeas,mlichvar\/augeas,jasperla\/augeas,manandbytes\/augeas,jtopjian\/augeas,domcleal\/augeas,manandbytes\/augeas,dafugg\/augeas,raphink\/augeas,jjlin\/augeas"} {"commit":"a953a294b231367d276f365842682a32d6b14e61","old_file":"tests\/modules\/pass_let_exp.aug","new_file":"tests\/modules\/pass_let_exp.aug","old_contents":"","new_contents":"(* Test let expressions *)\nmodule Pass_let_exp =\n\n (* This definition is insanely roundabout; it's written that way *)\n (* since we want to exercise LET expressions *)\n let lns = \n let lbl = \"a\" in\n let spc = \" \" in\n let del_spaces (s:string) = del spc+ s in\n let del_str (s:string) = del s s in\n let store_delim (ldelim:string) \n (rdelim:string) (val:regexp) = \n del_str ldelim . store val . del_str rdelim in\n [ label lbl . del_spaces \" \" . store_delim \"(\" \")\" \/[a-z]+\/ ]\n\n test lns get \" (abc)\" = { \"a\" = \"abc\" }\n\n\n(* Local Variables: *)\n(* mode: caml *)\n(* End: *)\n","subject":"Check that let expressions work","message":"Check that let expressions work\n","lang":"Augeas","license":"lgpl-2.1","repos":"mchf\/augeas,jjlin\/augeas,mchf\/augeas,bkearney\/augeas,hercules-team\/augeas,hercules-team\/augeas-do-not-use,raphink\/augeas,GeoffWilliams\/augeas,domcleal\/augeas,kumy\/augeas,mlichvar\/augeas,kunkku\/augeas,jjlin\/augeas,ptoscano\/augeas,MikaelSmith\/augeas,jjlin\/augeas,mlichvar\/augeas,lutter\/augeas,MikaelSmith\/augeas,hercules-team\/augeas,camptocamp\/augeas,jtopjian\/augeas,hercules-team\/augeas-do-not-use,domcleal\/augeas,camptocamp\/augeas,bkearney\/augeas,raphink\/augeas,GeoffWilliams\/augeas,lutter\/augeas,kunkku\/augeas,jasperla\/augeas,kunkku\/augeas,dafugg\/augeas,camptocamp\/augeas,jasperla\/augeas,ptoscano\/augeas,bkearney\/augeas,manandbytes\/augeas,kumy\/augeas,lutter\/augeas,kumy\/augeas,pevalme\/augeas,dafugg\/augeas,mlichvar\/augeas,bkearney\/augeas,ptoscano\/augeas,kumy\/augeas,camptocamp\/augeas,dafugg\/augeas,pevalme\/augeas,hercules-team\/augeas-do-not-use,manandbytes\/augeas,domcleal\/augeas,pevalme\/augeas,jtopjian\/augeas"}