Adam Cécile (Le_Vert) a écrit :
Hi,

I'll have a look asap, probably during this week end.
Could you tell me from which version you were upgrading ?

Regards, Adam.

#!/bin/sh -e

# Skip if there's no previous version
if [ ! -z $2 ]; then
 if dpkg --compare-versions $2 lt 2.6.2-1; then
   stat=`dpkg-statoverride --list /usr/bin/fusermount || true`
   if [ "$stat" = "root fuse 4754 /usr/bin/fusermount" ]; then
     dpkg-statoverride --remove /usr/bin/fusermount;
   elif [ "$stat" = "root fuse 4750 /usr/bin/fusermount" ]; then
     dpkg-statoverride --remove /usr/bin/fusermount;
   fi
 fi
 if dpkg --compare-versions $2 ge 2.6.2-1; then
   update-rc.d -f fuse-utils remove >/dev/null 2>&1 || true
   rm -f /etc/init.d/fuse-utils
 fi
 # Remove doc directory, replaced by symlinks (See: #429424)
 if dpkg --compare-versions $2 lt 2.6.5-1; then
   rm -rf /usr/share/doc/fuse-utils
 fi
fi

#DEBHELPER#

exit 0

If you were upgrading from any version older than 2.6.5-1, everything should have been fine. The symlink appeared in 2.6.5-1, however, proper pre-inst script has been introduced with 2.6.5-2.

Here is what's happened to you:
1. An old fuse installation, prior to 2.6.5-1.
2. Update to 2.6.5-1. The directory should have been replaced by a symlink but the preinst script was not here. 3. Update to something newer. The preinst script ignore the remove-old-doc-dir step because it assumes it's already done. However, the crappy 2.6.5-1 package didn't do.

Then the right fix would be:
- if dpkg --compare-versions $2 lt 2.6.5-1; then
+ if dpkg --compare-versions $2 lt 2.6.5-2; then

Could you please confirm what version you were updating, if possible ?

Regards, Adam.


Reply via email to