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

Bug#469363: dpkg-reconfigure should run prerm upgrade

Package: cdebconf
Severity: normal

cdebconf's dpkg-reconfigure currently only runs the config and postinst

debconf's dpkg-reconfigure runs 3 scripts:

        foreach my $info (['prerm',    'upgrade',     $version],
                          ['config',   'reconfigure', $version],
                          ['postinst', 'configure',   $version]) {

The reason debconf runs the prerm is underdocumented[1], but probably is to
completly reproduce the actions that dpkg performs when configuring a package.
It's possible that a postinst script could rely on the prerm being run first.

For example, the prerm might stop a daemon that is started again in the
postinst script. While it would probably not fail if the daemon was already
running, the daemon might not notice configuration changes made by the

-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-1-686 (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

see shy jo

[1] * dpkg-reconfigure: run prerm script. Should be safe
    -- Joey Hess <joeyh@debian.org>  Thu,  3 Oct 2002 19:33:30 -0400

Attachment: signature.asc
Description: Digital signature

Reply to: