Re: debconf as a registry
On Thursday 16 October 2014 22:34:15 Bas Wijnen wrote:
> Oh yes, and I have some code ready for feedback. I haven't written the
> script libraries yet (and I want others to write some of them), but I
> have written the debhelper module for using them.
For what it's worth, lcdproc package [1] uses cme (aka Config::Model) to merge
configuration file and upstream changes. On the other hand, debconf is not
involved because lcdproc does not need to store a debconf value.
cme can be adapted to use a debconf value as some kind of default values
(probably a "preset" value in Config::Model terminology)
This may provide a way to solve your problem while minimizing the amount of
duplicated code between packages.
Hope this helps
[1] http://anonscm.debian.org/cgit/collab-maint/lcdproc.git/
--
https://github.com/dod38fr/ -o- http://search.cpan.org/~ddumont/
http://ddumont.wordpress.com/ -o- irc: dod at irc.debian.org
Reply to: