Le 25/09/2011 22:14, Ludovic Brenta a écrit :
> xavier grave writes:
>> you are against a dpkg-divert solution ?
> 
> TBH I didn't know about dpkg-divert until now :) I'm not sure how you're
> planning to call it.  For one thing, the preinst script of
> libxmlezout2-dev may not know about the presence or absence of
> libxmlezout0.  For another, how do you plan to detect when the diversion
> ceases to be necessary and to remove it from /var/lib/dpkg/diversions?
> 
I have tested the use libxmlezout2-dev.preinst and libxmlezout2-dev.postrm
The diversion is only done if the conflict is detected as far as I
understand/can see. I have done some tries and I can have the three
packages (libxmlezout0, libxmlezout1 libxmlezout2-dev) installed at the
same time.

I join the two script files in order to have your advice.
#! /bin/sh
# preinst script for libxmlezout

set -e

dpkg-divert --package libxmlezout2-dev --rename --add 
/usr/share/man/man7/xml_ez_out.7.gz

#DEBHELPER#

exit 0
#! /bin/sh
# prerm script for libxmlezout1

set -e

dpkg-divert --package libxmlezout2-dev --remove --rename 
/usr/share/man/man7/xml_ez_out.7.gz

#DEBHELPER#

exit 0

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to