[augeas-devel] [PATCH] php lens
Bryan Kearney
bkearney at redhat.com
Tue Apr 22 21:01:00 UTC 2008
Attached is a patch to add a php lens. Couple of notes:
1) This is pretty much a copy of yum except for the line
let value = /[^\n]*(\n[ \t]+[^ \t\n]+)*/
In yum it is
let value = /[^ \t][^\n]*(\n[ \t]+[^ \t\n]+)*/
This was becuase the default php.ini has many blank items
foo=
where the yum pattern added a newline.
2) I can not get the test to work. If I run augtest, it fails. If I run
augtest ini-php.change.rb I get the following
[bkearney at localhost tests]$ augtest ini-php-change.rb
./../lenses/php.aug:13.2-.50:Failed to compile kv
syntax.c:1846 Fixme: Cleanup loaded modules
Failed to initialize Augeas
Test ini-php-change ... FAIL
Expected file ./../build/augtest/etc/php.ini.augnew
If I run it manually, it works. Any help on how to solve the testing, I
will go change it.
-- bk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: php.patch
Type: text/x-patch
Size: 1559 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/augeas-devel/attachments/20080422/61ae1f14/attachment.bin>
More information about the augeas-devel
mailing list