Re: Upgrading a package with diversions
Michael Shields writes ("Re: Upgrading a package with diversions"):
...
> Are you saying that the prerm and postrm should know what diversions were
> used by each previous version of the package, and manage to get it right
> based on the version number? This seems like a lot of work, and
> error-prone.
Yes, you're right.
> Maybe, instead of running dpkg-divert from preinst/postrm at all, there
> should be a DEBIAN/diversions file in the package. It would simply contain
> pairs of old and new filenames:
>
> /bin/ls
> /bin/ls.mono
> /usr/bin/thingy
> /usr/bin/thingy.mono
I had thought of a different solution but yours is much better. I've
put it on the wishlist and will implement it when I'm next messing
with things like this. Unfortunately your suggestion does involve a
significant amount of extra work ...
Thanks,
Ian.
Reply to: