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

Re: Problems found by piuparts

On Mon, Feb 20, 2006 at 08:24:53AM +0200, Lars Wirzenius wrote:
>         * Use of ucf in postrm during a purge, without checking that ucf
>         is installed. Since ucf is not an essential package, postrm
>         during purge cannot rely on it. As it happens, I think it might
>         be good to have ucf (or a subset of it) as an essential package,
>         since this error happens a lot.

So assuming that we're stuck with the current implementation for a bit where
ucf is not part of essential, I do wonder if checking whether ucf is
installed is actually the correct thing to do in postrm purge.  The state
prior to purge is defined as "config files"; the difference between config
files state and "purged" is whether there are still config files left on the
system.  If the package can't actually succeed in removing its config files
because ucf is not installed, isn't it *correct* for the postrm purge
command to fail?  I.e., I think it's more of a bug to allow dpkg to put the
package into "purged" state leaving orphaned config files behind than it is
for postrm purge to fail and leave the package in "config files" state.

Steve Langasek                   Give me a lever long enough and a Free OS
Debian Developer                   to set it on, and I can move the world.
vorlon@debian.org                                   http://www.debian.org/

Attachment: signature.asc
Description: Digital signature

Reply to: