tags 527063 + patch thanks I would like to propose this simple patch to solve this issue. I did not find anything in the changelog on why the purge rule is so complex, and believe the correct approach would be to remove everything in /usr/share/mime/ on purge if this directory belong to shared-mime-info. Why are these files in /usr/share/, and not in /var/lib/, if they are generated update-mime-database?
diff -ur ../shared-mime-info-0.60/debian/postrm ../shared-mime-info-0.60-pere/debian/postrm --- ../shared-mime-info-0.60/debian/postrm 2009-09-21 14:10:33.000000000 +0200 +++ ../shared-mime-info-0.60-pere/debian/postrm 2009-09-21 14:11:52.758131000 +0200 @@ -7,24 +7,7 @@ if [ "$1" = purge ]; then MIMEDIR="/usr/share/mime" if [ -d $MIMEDIR ]; then - rm -f "$MIMEDIR/globs" \ - "$MIMEDIR/magic" \ - "$MIMEDIR/XMLnamespaces" \ - "$MIMEDIR/subclasses" \ - "$MIMEDIR/aliases" \ - "$MIMEDIR/mime.cache" - - rm -fr /usr/share/mime/text \ - /usr/share/mime/inode \ - /usr/share/mime/image \ - /usr/share/mime/video \ - /usr/share/mime/message \ - /usr/share/mime/model \ - /usr/share/mime/multipart \ - /usr/share/mime/audio \ - /usr/share/mime/application - - rmdir --ignore-fail-on-non-empty /usr/share/mime + rm -rf $MIMEDIR fi fi Note that the patch is untested, and I do not really know why the package behave the way it currently do. Happy hacking, -- Petter Reinholdtsen -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org