[augeas-devel] [PATCH 5 of 7] Rewrite dpug.aug on new inifile.aug
David Lutterkort
dlutter at redhat.com
Fri Aug 15 00:43:45 UTC 2008
On Thu, 2008-08-14 at 17:52 +0200, Raphael Pinson wrote:
> # HG changeset patch
> # User Raphael Pinson <raphink at gmail.com>
> # Date 1218728966 -7200
> # Node ID 2ede05e9f18a50a93ed49b6d47b63e0872fcf3cf
> # Parent b3d373af10fdb0150400ec084c4d51b60031ef65
> Rewrite dpug.aug on new inifile.aug
> +let filter = (incl "/etc/dput.cf")
> + . (incl "~/.dput.cf")
> + . Util.stdexcl
AFAIK, the '~' won't work in Augeas, since it doesn't expand it (the
shell usually does that)
For per-user files, we'd need to add a cal ot the API to explicitly load
a file with a given lens. As a workaround for yourself, you could keep
your own lenses in your home dir and put a module like
module MyDput
autoload xfm
let xfm = transform Dput.lns (incl "/home/raphink/.dput.cf")
into it. Not pretty though ...
David
More information about the augeas-devel
mailing list