Subject: removing directories with modified configuration files
To: None <tech-pkg@netbsd.org>
From: Klaus Heinz <k.heinz.sep.zwei@onlinehome.de>
List: tech-pkg
Date: 09/09/2002 21:54:23
Hi,

if I install a package which creates a configuration directory, add an
_additional_ file in this directory and then remove the package I get
this:

  pkg_delete: unable to completely remove directory '/usr/pkg/etc/spamassassin'
  pkg_delete: couldn't entirely delete package `spamassassin-2.41'

Other packages employ a method to avoid such messages:

  @unexec ${RMDIR} %D/etc/spamassassin 2>/dev/null || true

Is this the recommended way? Or should the warning above be visible to
the end user?


ciao
     Klaus