[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#483418: Not limit dpkg-divert to install but valid also for upgrade in app.



On Sat, 05 Jul 2008, Russ Allbery wrote:
> Please check the following patch, which attempts to clarify how dpkg
> diversions should be handled.  Once I started digging into this, the cases
> looked more complex than I had expected.  I tried to add more language to
> explain the whole situation on the grounds that if I found it confusing,
> other people almost certainly also do.

Looks reasonable, seconded.

>  	The postrm has to do the reverse:
>  	<example>
> -  if [ remove = "$1" ]; then
> +  if [ remove = "$1" -o abort-install = "$1" -o disappear = "$1" ]; then

To be really complete we should also handle the abort-upgrade if the
old version had no diversion... but that would make it too complicated
for its purpose.

Cheers,
-- 
Raphaël Hertzog

Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/



Reply to: