/[soft]
ViewVC logotype

Revision 8077


Jump to revision: Previous Next
Author: colin
Date: Sun Apr 28 19:24:46 2013 UTC (10 years, 11 months ago)
Changed paths: 4
Log Message:
Add support for upgrades that need some form of preparation before continuing.

The basic principle of this is to do the following:
 1. Check the releases webservice API to see if the distro version 'needs_preparation'.
 2. If it does, check for a file /var/lib/mageia-prepare-upgrade/state.
    If it says 'ready' then we are ready and the user is not questioned further.
 3. If it does not exist or says anything else, the user is prompted to install the
    package 'mageia-prepare-upgrade'.
 4. After package installation, check the state file again as this may be
    all that is required. If the state file does not yet say 'ready', then
    display the text from the /usr/share/doc/mageia-prepare-upgrade/README.prepare
    file (todo: add i18n)
 5. Assuming that further action is required by the user (e.g. rebooting to
    convert the filesystem), then the upgrade helper will exit.
 6. After the user has taken the action required to do the preparation,
    the state file should contain 'ready'. The next time the distro upgrade
    dialog shows, the preparation checks will pass and the user can continue.

TODO:
 Handle i18n in the README.prepare file.

v1: First Revision
v2: Check immediately if an upgrade state file exists (don't wait 5 mins)
    Ensure config file is parsed (ensures the testing variable is read)
    Show user-visible messages when bailing out due to unexpected errors

Changed paths

Path Details
Directorymgaonline/trunk/NEWS modified , text changed
Directorymgaonline/trunk/mgaapplet modified , text changed
Directorymgaonline/trunk/mgaapplet-upgrade-helper modified , text changed
Directorymgaonline/trunk/mgaonline.pm modified , text changed

  ViewVC Help
Powered by ViewVC 1.1.30