[augeas-devel] Avoiding wheel reinvention with dpkg.cfg, and setting empty things.

David Lutterkort lutter at redhat.com
Tue Dec 30 05:56:57 UTC 2008


On Mon, 2008-12-29 at 12:01 -0800, Robin Lee Powell wrote:
> On Mon, Dec 29, 2008 at 11:56:48AM -0800, Robin Lee Powell wrote:
> > On Sun, Dec 28, 2008 at 08:52:14PM -0800, Robin Lee Powell wrote:
> > > 
> > > So I'm trying to work with debian's /etc/dpkg/dpkg.cfg.  It's
> > > incredibly simple: # comments, real lines are command-line options
> > > names, possibly with a space-seperated single argument, i.e.:
> > 
> > Ended up writing it myself.  I'm pasting it below because I hit a
> > segfault in Augeas:
> > 
> > - ----------------
> > 
> > (* Parsing /etc/dpkg/dpkg.cfg *)
> 
> It just occured to me that y'all might actually add this to the
> lenses repo, in which case I'd like to add some descriptive
> commentary (something the extant lenses are staggeringly short on,
> I'd like to add).

That's actually part of the reason why I insist on unit tests for new
lenses: they also provide a simple overview of what the resulting tree
looks like.

So, how about turning those comments into a unit test ;) ?

David





More information about the augeas-devel mailing list