Bug#214699: dpkg-divert: appears to copy symlink and leaves old one there [libxrender1]
Package: dpkg
Version: 1.10.15
Severity: serious
There appears to be some kind of issue with dpkg-divert not moving
symlinks at times. Both Branden and I have looked at libxrender1 and it
appears to be calling divert correctly but the file is diverted _AND_
the old file is still left in its location. I tested this inside a clean
chroot and was able to repeat it multiple times.
BTW - This is in libxrender1 0.8.3-1.
Chris
Here is its preinst:
---
#!/bin/sh
# $Id: libxrender1.preinst 27 2003-05-04 10:22:34Z branden $
set -e
if [ "$1" = "install" -o "$1" = "upgrade" ]; then
dpkg-divert --package libxrender1 --add --rename \
--divert /usr/X11R6/lib/libXrender-1.1.so.1 /usr/X11R6/lib/libXrender.so.1
fi
exit 0
# vim:set ai et sts=4 sw=4 tw=0:
---
-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux calc 2.4.22-bk18 #1 SMP Mon Sep 15 12:55:07 CDT 2003 i686
Locale: LANG=en_US, LC_CTYPE=en_US
Versions of packages dpkg depends on:
ii dselect 1.10.15 a user tool to manage Debian packa
ii libc6 2.3.2-8 GNU C Library: Shared libraries an
-- no debconf information
Reply to: