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

Maarten Bezemer maarten.bezemer at gmail.com
Sun Feb 19 16:40:38 UTC 2012


Public bug reported:

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

** Affects: dpkg (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to dpkg in Ubuntu.
https://bugs.launchpad.net/bugs/936340

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

Status in “dpkg” package in Ubuntu:
  New

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 foundations-bugs mailing list