Bug#789281: figtoipe: leaves diversion after upgrade from stretch

2015-06-24 Thread Andreas Beckmann
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


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


Bug#789281: figtoipe: leaves diversion after upgrade from stretch

2015-06-19 Thread Andreas Beckmann
Package: figtoipe
Version: 20150406-1
Severity: serious
User: debian...@lists.debian.org
Usertags: piuparts

Hi,

during a test with piuparts I noticed your package fails to remove some
diversions after upgrading from stretch to sid and removing the package
afterwards.

>From the attached log (scroll to the bottom...):

0m23.8s ERROR: FAIL: Installed diversions (dpkg-divert) not removed by purge:
  diversion of /usr/share/man/man1/figtoipe.1.gz to 
/usr/share/man/man1/figtoipe.distrib.1.gz by figtoipe
  diversion of /usr/bin/figtoipe to /usr/bin/figtoipe.distrib by figtoipe

If the diversions were used by the old package and are no longer needed
by the new one in sid, you should perform the cleanup in the postinst script.


cheers,

Andreas


figtoipe_20150406-1.log.gz
Description: application/gzip