Torsten Werner wrote:
> Everything is explained in NEWS.Debian.

Actually, no, your NEWS.Debian mentions "the old log files" and "the
logrotate configuration file" but fails to mention that all acpid files
are also hosed by this upgrade.

> > | You should check in preinst, by comparing the md5sums of the
> > | installed file and the one recorded in /var/lib/dpkg/info, if the file
> > | has been modified.
> 
> That is not an exported API of dpkg, just an undocumented
> implementation detail. I do not want to rely on that. But you can
> reassign the bug to dpkg if you think it is worth fixing.

http://wiki.debian.org/DpkgConffileHandling

dpkg offers a defined interface to /var/lib/dpkg/info already:

[EMAIL PROTECTED]:~>dpkg-query -W -f='${Conffiles}\n' pdmenu
 /etc/pdmenurc 58a28d70ece0c49c19449cdd2fca3bec
 /etc/menu-methods/pdmenu e8df1e9bdee28d52a42d4ab3feeb246a
 /etc/menu-methods/pdmenu-x11 643ffbeacd367532a8e7a97536b90692
 /etc/menu-methods/pdmenu-vc 1619fec77b54c1531dd9d296ea305c1c

However, in this actual case, dpkg no longer knows about the conffiles
since your package has already dropped them, so the only way to fix things
is to embed the md5sums of the original conffiles in the postinst script.

-- 
see shy jo

Attachment: signature.asc
Description: Digital signature

Reply via email to