[Pkg-utopia-maintainers] Bug#433638: Bug#433638: Bug#433638: preinst script should not use hardcode md5 for config files

Michael Biebl biebl at debian.org
Wed Jul 18 13:44:23 UTC 2007


Sjoerd Simons wrote:
> On Wed, Jul 18, 2007 at 01:54:03PM +0200, Laurent Bigonville wrote:
>> Package: dbus
>> Severity: normal
>> Version: 1.1.1-3
>>
>> Hi,
>>
>> I don't think the preinst script should use hardcoded md5 for config
>> files. There is an other method to check md5, please see:
>> http://wiki.debian.org/DpkgConffileHandling
> 
> The md5sum was hardcoded for a reason :).. See:
> 
> r357 | sjoerd | 2005-11-10 08:49:15 +0000 (Thu, 10 Nov 2005) | 1 line
> 
> Pass the md5sum to rm_conffile, because dpkg looses track of it when
> dbus-1-util is purged or upgraded
> 
> We could potentially remove this though. As the move was made before etch, so
> we don't have to support it anymore strictly.. But i don't see any real reason
> to remove it or to try to fix it while it's not broken :)

Oops, that means I was too hasty with my commit.
Should I revert the change then? Do you see any problems?

About dpkg losing track of the md5sum:
In case dbus-1-utils is purged, it shouldn't be an issue, as the
conffile would be removed in this case anyway, right?

The only problem I can see is, that dbus Replaces dbus-1-utils. So the
conffile can change ownership and move from the dbus-1-utils to the dbus
package (in which case the PKGNAME would be wrong).
This case can only happen though, when rm_conffile in dbus.preinst was
added after the Replaces.




-- 
Why is it that all of the instruments seeking intelligent life in the
universe are pointed away from Earth?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 252 bytes
Desc: OpenPGP digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-utopia-maintainers/attachments/20070718/f4620883/attachment-0001.pgp 


More information about the Pkg-utopia-maintainers mailing list