[Bug 936340] Re: dpkg-maintscript-helper does not show complete debug output

Raphaël Hertzog hertzog at debian.org
Sun Feb 19 19:34:15 UTC 2012


Thank you for the report. I committed a different fix in the upstream
git repository (changing debug() to print all parameters).

I don't think this warrants an immediate upload to Ubuntu, it will be
fixed the next time the package is synced with Debian.

** Changed in: dpkg (Ubuntu)
       Status: New => Fix Committed

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/936340

Title:
  dpkg-maintscript-helper does not show complete debug output

Status in “dpkg” package in Ubuntu:
  Fix Committed

Bug description:
  When looking at the rm_conffile() function in the dkpg-maintscript-
  helper script, these lines can be found to show some debug output:

    debug "Executing $0 rm_conffile in $DPKG_MAINTSCRIPT_NAME "\
          "of $DPKG_MAINTSCRIPT_PACKAGE"
    debug "CONFFILE=$CONFFILE PACKAGE=$PACKAGE "\
          "LASTVERSION=$LASTVERSION ACTION=$1 PARAM=$2"

  When I enable debug output I only get this information:

  DEBUG: dpkg-maintscript-helper: Executing /usr/bin/dpkg-maintscript-helper rm_conffile in postinst
  DEBUG: dpkg-maintscript-helper: CONFFILE=/etc/mc/Syntax PACKAGE=mc

  The 2nd part of each debug output is not shown! (Resulting in my bad
  understanding of the helper script which was not working) I could
  easily fix it, by merging the 2 line into one for each debug output.
  Resulting in:

  DEBUG: dpkg-maintscript-helper: Executing /usr/bin/dpkg-maintscript-helper rm_conffile in postinst of mc
  DEBUG: dpkg-maintscript-helper: CONFFILE=/etc/mc/Syntax PACKAGE=mc LASTVERSION=4.7.4 ACTION=configure PARAM=3:4.7.0.9-2

  $ apt-cache policy dpkg
  dpkg:
    Installed: 1.16.1.2ubuntu5
    Candidate: 1.16.1.2ubuntu5
    Version table:
   *** 1.16.1.2ubuntu5 0
           90 http://archive.ubuntu.com/ubuntu/ precise/main amd64 Packages
          100 /var/lib/dpkg/status
       1.16.0.3ubuntu5 0
          500 http://nl.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/936340/+subscriptions



More information about the Ubuntu-sponsors mailing list