Package: apcupsd
Version: 3.12.1-1
While testing apcupsd with piuparts, I ran into the following problem:
Purging configuration files for apcupsd ...
/var/lib/dpkg/info/apcupsd.postrm: line
5: /usr/share/debconf/confmodule: No such file or directory
dpkg: error processing apcupsd (--purge):
subprocess post-removal script returned error exit status 1
The postrm script can rely only on non-essential packages during the
purge phase (see policy, 7.2 Binary Dependencies, last paragraph
describing Depends). You probably need to call debconf stuff
conditionally, for example something like this (I'm not a debconf
expert, however):
if [ "$1" = 'purge' ] && [ -e /usr/share/debconf/confmodule ]; then
. /usr/share/debconf/confmodule
db_purge
fi
I hope this helps. Happy hacking.
--
/* The following line has been commented out */
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]