use #DEBHELPER# in postinst

Bug #226788 reported by Tormod Volden
2
Affects Status Importance Assigned to Milestone
laptop-mode-tools (Ubuntu)
Fix Released
Undecided
Tormod Volden

Bug Description

Binary package hint: laptop-mode-tools

In fixing bug #127273, I added the parts from the Debian .postinst to the Ubuntu one. This was autogenerated by debhelper. Therefore the Ubuntu postinst should rather contain "#DEBHELPER#" than having that part pasted in.

Just noting it here so that whoever merges it the next time can correct this.

Changed in laptop-mode-tools:
assignee: nobody → tormodvolden
status: New → In Progress
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package laptop-mode-tools - 1.42-1ubuntu1

---------------
laptop-mode-tools (1.42-1ubuntu1) intrepid; urgency=low

  * Merge from debian unstable (LP: #229579), remaining changes:
    - etc/init.d/laptop-mode: Check if laptop mode is disabled in
      /etc/default/laptop-mode (that's the file laptop_mode looks into, too,
      but it incorrectly evaluates the ENABLE_LAPTOP_MODE setting) as well
      as in /etc/default/acpi-support.
    - /usr/sbin/laptop_mode: Do not parse arguments, ignore "force" and
      "init" and let start/stop mean enable/disable.
    - /usr/sbin/laptop_mode: Do not read $ACTIVATE_WITH_POSSIBLE_DATA_LOSS
      from /var/run/laptop-mode-state to see if state has changed.
    - debian/rules: Do not ship acpi/apm scripts (we handle that ourselves)
    - debian/laptop-mode-tools.preinst: Remove any old acpi/apm scripts
    - debian/laptop-mode-tools.postinst: Create /etc/default/laptop-mode
      (with ENABLE_LAPTOP_MODE=false) if the file does not exist yet and we
      are on ppc.
    - debian/control: Change maintainer
  * Use #DEBHELPER# in .postinst and .preinst (LP: #226788)
  * Avoid using temporary files in init script to avoid hangs on
    shutdown if filesystem is read-only (LP: #206217)
  * Also accept "stop" as second argument since the init script
    calls laptop_mode with "init stop"

laptop-mode-tools (1.42-1) unstable; urgency=low

  * New upstream version 1.42:
    * Remove "echo -e" bashism in lm-profiler. Closes: #480606.
    * Allow different names for AC adapter in /sys/class/power_supply.
      Closes: #478937.
    * Add "hal-polling" module to control HAL polling of CD/DVD drives. (Taken
      from powertop tips.) Closes: #438782.
    * Add "bluetooth" module to disable bluetooth in battery mode. (Taken from
      powertop tips.)

laptop-mode-tools (1.41-1) unstable; urgency=high

  * New upstream version 1.41:
    * Support energy_* in /sys/class/power_supply interface. Closes: #477118.
    * Rename module "core" to "laptop-mode". Closes: #477310.
    * Add missing assignment to ACTIVATE_WITH_POSSIBLE_DATA_LOSS.
      Closes: #477172.

laptop-mode-tools (1.40-1) unstable; urgency=high

  * Upgrade standards version to 3.7.3.
  * Add hal to recommends due to upstream changes.
  * New upstream version 1.40:
    * Add support for getting lid button state from HAL instead of from
      /proc/acpi.
    * Support /sys/class/power_supply interface to determine battery levels.
      Closes: #475926
    * Add generic support for config file swapping. Closes: #475304
    * Add module for iwlwifi power management. Closes: #475407
    * Fully modularized configuration.

laptop-mode-tools (1.36-1) unstable; urgency=low

  * New upstream version 1.36.
  * Init script LSB header: depend on remote_fs instead of local_fs.
    Closes: #468657.
  * Remove ^M from /etc/init.d/laptop-mode. Closes: #459422.
  * Change package description to say "X11" instead of "X Windows".
    Closes: #464066.
  * Get rid of empty /usr/bin directory in package. (lintian warning)

 -- Tormod Volden <email address hidden> Mon, 12 May 2008 16:24:50 +0200

Changed in laptop-mode-tools:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.