Re: problem with dpkg-reconfigure and noninteractive frontend
On Sat, 24 Apr 2004 14:43:25 -0700, Don Armstrong <firstname.lastname@example.org> said:
> On Sat, 24 Apr 2004, Denis Barbier wrote:
>> When a package is reconfigured, the new debconf settings and
>> current configuration files are available, but previous debconf
>> settings are not and you cannot determine that there have been no
>> local changes.
> While the former is true, the latter is not. See, for example,
> how xserver-xfree86 deals (perhaps suboptimally) with this
> It's not all that difficult to determine whether a file has been
> modified by the user or not. [Well, assuming the user actually makes
> a change to the file... but you'd have the same problems with
With conffiles, there is a record of the old versions md5sum.
Of course, ucf is designed for situations like this; you can just use
the debconf db to construct a file, and use ucf to ask the user iff
the user has made any changes.
Small is beautiful.
Manoj Srivastava <email@example.com> <http://www.debian.org/%7Esrivasta/>
1024R/C7261095 print CB D9 F4 12 68 07 E4 05 CC 2D 27 12 1D F5 E8 6E
1024D/BF24424C print 4966 F272 D093 B493 410B 924B 21BA DABB BF24 424C