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

Re: dpkg-divert -- How do I use it?



joost@rulcmc.leidenuniv.nl (joost witteveen) writes:

> But I _do_ want to at least install the diversion the first time
> a user upgrades from libg++27-dev_...-4

See programmer's 6.2.  It will give you the upgraded from version as
$2, so you can use dpkg --compare-versions to see if $2 <= ...-4.

> Removing `diversion of /usr/lib/libstdc++.so.27.2.1 to /usr/lib/libstdc++.so.27.2.1.stripped by libg++27-dev'
> dpkg-divert: rename involves overwriting `/usr/lib/libstdc++.so.27.2.1' with
>   different file `/usr/lib/libstdc++.so.27.2.1.stripped', not allowed

It sounds like you're removing the diversion in prerm?  You should be
doing it in the postrm.

> OH, BTW, I read that I'm not supposed to use divert on anything that
> is critical to the system's operation. Is libg++ critical enough
> not to be allowed to use dpkg-divert? I guess not (it's not essential
> and such).

Could be a future problem.  There might be important local binaries
written in C++.


Guy


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-devel-REQUEST@lists.debian.org . Trouble? e-mail to Bruce@Pixar.com


Reply to: