Hi, a pair of days ago i have uploaded a new version of libpaper and libpaperg (version 1.0.3-10), to close a release critical bug: in the preinst of libpaperg i have added two diversions, since both libpaper and libpaperg contain the files /usr/sbin/paperconfig and /usr/bin/paperconf.
Unfortunately, something is not working and i have received three bug reports: there are problems when upgrading from libpaperg_1.0.3-9 to libpaperg_1.0.3-10: this is the more interesting (bug#23644): > Package: libpaperg > Version: 1.0.3-9 > > Preparing to replace libpaperg 1.0.3-9 (using libpaperg_1.0.3-10.deb) ... > Adding `diversion of /usr/bin/paperconf to /usr/bin/paperconf.libc5 by > libpaperg' > Adding `diversion of /usr/sbin/paperconfig to > /usr/sbin/paperconfig.libc5 by libpaperg' > Unpacking replacement libpaperg ... > dpkg: error processing libpaperg_1.0.3-10.deb (--unpack): > trying to overwrite `/usr/bin/paperconf', which is the diverted version > of `¼Z¨^ɸ×' (package:libpaperg) > Errors were encountered while processing: > libpaperg_1.0.3-10.deb > E: Sub-process returned an error code Please notice the strange chars in the error message: i really do not know how this can be my fault! Moreover, I have tried to reproduce the bug, with no results: all works correctly on my machine. So, i really need your help with this bug: i am appending the preint script for libpaperg_1.0.3.10 (that introduces the diversions). Thank you, Marco ------------------------ libpaperg.preinst --------------------------- #! /bin/sh set -e FIRST_VERSION_WITH_DIVERT="1.0.3-10" if [ "$1" = "install" ]; then dpkg-divert --package libpaperg --add --rename \ --divert /usr/bin/paperconf.libc5 /usr/bin/paperconf dpkg-divert --package libpaperg --add --rename \ --divert /usr/sbin/paperconfig.libc5 /usr/sbin/paperconfig fi if [ "$1" = "upgrade" ] && /usr/bin/dpkg --compare-versions $2 lt $FIRST_VERSION_WITH_DIVERT ; then dpkg-divert --package libpaperg --add \ --divert /usr/bin/paperconf.libc5 /usr/bin/paperconf dpkg-divert --package libpaperg --add \ --divert /usr/sbin/paperconfig.libc5 /usr/sbin/paperconfig fi exit 0 ------------------------------------------------------------------------- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]