Followup-For: Bug #789281
Control: found -1 20150406-2

That did not work.
It would need at least a '|| [ "$1" = upgrade ]' in the preinst as well.

But the correct path to remove an obsolete diversion would be:

* add versioned Breaks+Replaces against the packages that previously
  shipped the diverted file
* remove the diversion in your postinst (can be restricted to upgrades
  from previous versions only), at this point the diverted file from the
  other package is surely gone

The preinst approach will fail if the other package that shipped the
diverted file is still installed.


Andreas

Attachment: figtoipe_20150406-2.log.gz
Description: application/gzip

Reply via email to