Bug#29522: marked as done ([PROPOSED]: clarification needed about diversions)
reopen 29522
thanks
No, I can tell you from recent experience that the packaging manual's
example for diversions is wrong.
The postrm example is correct, but the preinst one isn't.
The preinst should be:
if [ install = "$1" -o upgrade = "$1" ]; then
dpkg-divert --package smailwrapper --add --rename \
--divert /usr/sbin/smail.real /usr/sbin/smail
fi
It's also been suggested that --rename is potentially harmful.
--
Joel Klecker (aka Espy) Debian GNU/Linux Developer
<URL:mailto:jk@espy.org> <URL:mailto:espy@debian.org>
<URL:http://web.espy.org/> <URL:http://www.debian.org/>
Reply to: