On Wed, Jul 04, 2007 at 11:27:54AM +0200, Rene Engelhard wrote: > severity 431644 minor > thanks > > Hi, > > Dan Jacobson wrote: > > dpkg - warning: while removing openoffice.org-common, directory > > `/etc/openoffice' not empty so not removed. > > > > Namely: > > /etc/openoffice: > > -rw-r--r-- 1 root 849 2007-07-04 02:43 dictionary.lst > > -rw-r--r-- 1 root 895 2007-07-04 02:43 dictionary.lst.old > > Hmm. That's not that easy to fix in OOo alone as every myspell dict will > call update-openoffice-dicts which will re-create this. Even if OOo > is not installed. I guess we should add a check whether OOo is installed > to update-openoffice-dicts. (And make it a no-op if not) > (openoffice.org-common does run update-openoffice-dicts, too, so > it'll work when you install OOo) > > Will reassign a clone to dictionaries-common for this later...
/etc/openoffice/dictionary.lst{,.old} belong to dictionaries-common and are removed on /dictionaries-common purge, ----------------------------------------------------------------------------- #! /bin/sh # postrm script for dictionaries-common set -e # Make sure /etc/openoffice myspell stuff is removed on purge if [ "$1" = "purge" ]; then rm -f /etc/openoffice/dictionary.lst /etc/openoffice/dictionary.lst.old if [ -d /etc/openoffice/ ]; then rmdir --ignore-fail-on-non-empty /etc/openoffice/ fi fi ... ----------------------------------------------------------------------------- We might also ship /etc/openoffice dir in dictionaries-common (now it is created from update-openoffice-dicts if not present) so dpkg knows there is another owner for that dir and modify above snippet accordingly (no need to erase it there) as well as update-openoffice-dicts for not creating that dir. I think this is better. -- Agustin -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]