After Debhelper / Maintscript helpers did their preinst work we need to
untangle a special case.
Due to bug 1694159 we need to handle a potential mv from pre
2.1.0-1ubuntu9~, but at the same time a RM from any later version.
But MV and RM conflict, in case both run (=if upgrading former LTS).
In those cases - and only if there was a custom config which is rare on
those files - we want take back the RM (which made a backup), to let the MV
be processed correctly.
This section can be dropped with libvirt-bin >=18.10
Signed-off-by: Christian Ehrhardt <email address hidden>
- revert to Debians maintscript helper (This partially reverts 1b8b224e)
For ubuntu we need a different change since we merged that on another
version and through a ackage rename this has to be implemented differently.
- remove upstart conffile - Upstart support was dropped, so remove the related
conffile as well.
- create libvirt-bin.maintscript which fixes some issues (proper former
package version detection)
In there work to mv conffiles if possible (LTS->LTS)
Also if from yakkety/zesty/UCA try to retain, but make safe decisions
when to rm instead of moving.
- when through yakkety/zesty without changes, or from LTS without
changes (the two most likely cases) then the old files will only be
removed.
Signed-off-by: Christian Ehrhardt <email address hidden>