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

Re: RFC: declaritive diversions



Robert Collins <robertc@robertcollins.net> writes:

> On Tue, 2007-07-17 at 11:55 +0200, Goswin von Brederlow wrote:
>
>> Did you see my earlier mail about the very same thing?
>
> No I didn't, sorry.
>
> I'm glad the concept seems to have positive reactions regardless.
>
> -Rob

I have the problem that I have diversions in some locally patched
packages and when updating to a more recent debian version they don't
get cleaned up. How could debian know about them?

Also handling diversions correctly in a package in general is overly
complicated (error prone) while being basically always the same.

So my suggestion in short was to have a diversions file in the control
part of the deb listing the diversions the package should have. On
install dpkg would then compare the
/var/lib/dpkg/info/<pkg>.diversions and new diversions file from
control.tar.gz and remove diversions no longer listed and add new
diversions.

That way diversions could not be left behind when removing a deb or be
installed/removed in thewrong maintainer script or at the wrong
time. Dpkg would implement the one true way[tm] to handle diversions
correctly once and all packages would use it with a much simpler
interface.

MfG
        Goswin



Reply to: