]> git.donarmstrong.com Git - debian/debian-policy.git/commit
Clarify handling of diversions in maintainer scripts
authorRuss Allbery <rra@debian.org>
Sat, 5 Jul 2008 23:08:41 +0000 (16:08 -0700)
committerRuss Allbery <rra@debian.org>
Sat, 5 Jul 2008 23:08:41 +0000 (16:08 -0700)
commit1eb0a4f2fd24d928c4bc08419dd70e94c4b7a658
treecd894bea910e8b4da15c864aaebce246bbdf9c25
parent3193014c2260aab6d3112b333a600b1a6c6f4678
Clarify handling of diversions in maintainer scripts

Suggest running dpkg-divert unconditionally in the preinst to also
catch cases of upgrading a package from a version before the diversion
was added.  Suggest an alternate form that doesn't re-add the diversion
when unnecessary on upgrades.

In the postrm example, remove the diversion in more cases and document
why it should not be removed on upgrades.

Closes: #483418
policy.sgml