[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2191: dpkg --purge don't work



Package: dpkg
Version: 1.0.8

Good day folks,

It seems that dpkg calls the prerm script with "remove" as $1 even if
it is called with --purge.

See the log:

/---
tapiola!root(ttyp0):/usr/local/lib# dpkg --purge cached-j
(Reading database ... 86 files and directories currently installed.)
Removing cached-j ...
/var/lib/dpkg/info/cached-j.prerm: remove
dpkg - warning: while removing cached-j, directory `/usr/local/lib/harvest/conf' not empty so not removed.
dpkg - warning: while removing cached-j, directory `/usr/local/lib/harvest/bin' not empty so not removed.
[...]
Purging configuration files for cached-j ...
ls: rc?.d/[SK]*: No such file or directory
\---

The prerm looks contains:

/---
#! /bin/sh

set -e
echo $0: $1
if [ "$1" = "purge" ]
then
  rm -rf /usr/local/lib/harvest/bin/dns /var/spool/proxy
/var/log/cached
fi
\---

If this is fixed in 1.0.11 please forgive me. I have looked in my
debian-devel archive but couldn't find either a bugreport listing this
or a fix in Ians changes files.

Regards,

	Joey

--
  / Martin Schulze  * joey@oldenburg.linux.de *  26129 Oldenburg /
 /                                    http://home.pages.de/~joey/
/ Ich glaube nur der Statistik, die ich selbst gefdlscht habe! /


Reply to: