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

Re: RFC: Idea for improved diversions and alternatives handling

Steve Langasek <vorlon@debian.org> writes:

> Er, I've for the life of me never understood why --rename is even an
> *option* to dpkg-divert.  What does dpkg-divert do without it, and how is
> that useful?

Only thing I can think of is something like this:

dpkg-divert --package my-libc6-wrapper --add /lib/libc-2.7.so
cp /lib/libc-2.7.so /lib/libc-2.7.so.my-libc6-wrapper


mv /lib/libc-2.7.so.my-libc6-wrapper /lib/libc-2.7.so
dpkg-divert --package my-libc6-wrapper --remove /lib/libc-2.7.so

A case where an intervall without the file is unacceptable.

> I don't think that the meaning of dpkg-divert (without --rename) should be
> changed, but I think that for declarative diversions, it makes sense to only
> support "rename".


Reply to: