[Debconf-devel] Bug#620150: dpkg-reconfigure breaks trigger invokation

Goswin von Brederlow goswin-v-b at web.de
Wed Mar 30 14:39:52 UTC 2011


Package: debconf
Version: 1.5.28
Severity: normal
File: /usr/sbin/dpkg-reconfigure

Hi,

I have a postinst script that calls dpkg-trigger. When I
dpkg-reconfigure that package I get the following error:

dpkg-trigger: dpkg-trigger must be called from a maintainer script (or with a --by-package option)

The problem is that dpkg-trigger expects that maintainer scripts will
be called by dpkg with DPKG_MAINTSCRIPT_PACKAGE being set. But
dpkg-reconfigure does not set this nor does it set
DPKG_MAINTSCRIPT_ARCH.

Please coordinate with the dpkg maintainers and policy about the right
way to call maintainer scripts. If you think you are right please
reassign to dpkg-trigger so it can document that --by-package is
mandatory.

MfG
        Goswin


-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-book-1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/bash

Versions of packages debconf depends on:
ii  debconf-i18n                  1.5.28     full internationalization support 
ii  perl-base                     5.10.1-12  minimal Perl system

Versions of packages debconf recommends:
pn  apt-utils                     <none>     (no description available)

Versions of packages debconf suggests:
ii  debconf-doc               1.5.38         debconf documentation
ii  debconf-utils             1.5.28         debconf utilities
ii  dialog                    1.1-20080819-1 Displays user-friendly dialog boxe
ii  gnome-utils               2.28.1-1       GNOME desktop utilities
pn  libgnome2-perl            <none>         (no description available)
pn  libnet-ldap-perl          <none>         (no description available)
ii  libterm-readline-gnu-perl 1.19-2         Perl extension for the GNU Readlin
ii  perl                      5.10.1-12      Larry Wall's Practical Extraction 
ii  whiptail                  0.52.10-5+b1   Displays user-friendly dialog boxe

-- debconf information excluded





More information about the Debconf-devel mailing list