Add preinst/postinst logic to handle upgrade of config file.

Bug #744588 reported by Andres Rodriguez on 2011-03-28
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
powernap (Ubuntu)
Medium
Andres Rodriguez

Bug Description

Binary package hint: powernap

The new PowerNap configuration file format has changed extensively from the one in previous Ubuntu version.

preinst/postinst logic is required to handle the upgrades and not lose a custom configuration file, for which in such case a copy of the old configuration file should be kept for manual merge of configuration. The logic will only upgrade configuration files when upgrading from versions < of 2.0.

If the configuration is left untouched, then the upgrade is seamless.

Changed in powernap (Ubuntu):
status: New → Confirmed
importance: Undecided → Wishlist
assignee: nobody → Andres Rodriguez (andreserl)
importance: Wishlist → Medium
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package powernap - 2.6-0ubuntu1

---------------
powernap (2.6-0ubuntu1) natty; urgency=low

  * debian/copyright: Update upstream authors and license years.
  * powernap/monitors/IOMonitor.py: If processes do not have a command line,
    search regex in the 'Name:' field of /proc/<PID>/status (LP: #735452)
  * actions/cpu_frequency: Fix saving/restoring of wrong governor (LP: #743682)
    Thanks to Mathieu Berard for the patch.
    - Additionally, save 'ondemand' as default when acpi-support and ondemand
      are run on boot to handle special case when running on battery.
  * debian/powernap.{preinst,postinst}: Add logic to handle the upgrade of
    the config file as format has changed. (LP: #744588)
    - install copy of config file in /usr/share/powernap to help with this.
 -- Andres Rodriguez <email address hidden> Mon, 28 Mar 2011 17:38:34 -0400

Changed in powernap (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers