Subject: Should a --purge also called the prerm with $1=purge

From: [email-masked]
Date: Sun, 7 Jul 96 17:50 EDT

When a package foo that has added some files in a directory /spong/baz of
it's own is --purge'd, dpkg usually displays a warning as
	dpkg - warning: while removing foo, directory /spong/baz is not
	empty so not removed.
which is somewhat unpleasant.

Adding a
	rm -r /spong/baz/*
in the prerm, conditional on $1 = "purge", doesn't help as dpkg calls
the prerm only with the "remove" argument.

Shouldn't it also call the prerm with "purge"? 

-- 
Dirk Eddelb"uttel                             http://qed.econ.queensu.ca/~edd

---

From: Ian Jackson <[email-masked]>
Date: Tue, 9 Jul 96 22:52 BST

> Shouldn't it also call the prerm with "purge"? 

This is a known bug.  It is supposed to try to remove the leftover
directories again after doing the purge, and only complain if that
fails.

Ian.