[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Upcoming Debian Releases



On Sun, 25 May 1997, Christian Hudon wrote:

> --5mCyUwZo2JvN/JJP
> Content-Type: text/plain; charset=us-ascii
> 
> On May 24, Tom Lees wrote
> > 
> > The third solution, which I prefer is a utility which modifies the
> > variables within the scripts - it's faster, it is more "backwards
> > compatible" with sysadmins from other Unices, and generally it's nicer
> > (less dependant on the cfgtool at boot-time).
> 
> And it changes the conffiles, which means that the user will still get
> bugged with "Conffile changed, overwrite with package's version or keeps
> yours?" questions from dpkg, which is exactly what we want to avoid with
> cfgtool.

There are ways to avoid this. For example, modify dpkg not to include any
line with "config=yes" in it in the md5sum of certain files.

So, for example:-

#!/bin/sh
# the blah script
<some code>

BLAH=yes		# config=yes

If this becomes:-

#!/bin/sh
# the blah script
<some code>

BLAH=no			# config=yes

It still gets excluded from the md5sum, but if someone changes it, like:-

#!/bin/sh
# the blah script
<some code>

BLAH=no

Then dpkg gets a different md5sum, and prompts, because it is included
this time.

-- 
Tom Lees <tom@lpsg.demon.co.uk>			http://www.lpsg.demon.co.uk/
PGP ID 87D4D065, fingerprint 2A 66 86 9D 02 4D A6 1E  B8 A2 17 9D 4F 9B 89 D6
finger tom@master.debian.org for full public key (also available on keyservers)


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: