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:[EMAIL PROTECTED]>                 <URL:mailto:[EMAIL PROTECTED]>
<URL:http://web.espy.org/>               <URL:http://www.debian.org/>

Reply via email to