summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeControler.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-23 22:54:41 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-23 22:54:41 +0100
commit4614765fb73d85f350f4f525a216386f01cbec0d (patch)
tree09b2334e2e7b8e000ba1533e17ed8dea8c841638 /DistUpgrade/DistUpgradeControler.py
parent39915e9f6f204c2ded4d976621b6a1a37b6c3548 (diff)
parent5d73a0332e39db8a773b1c3af989ed268c1f99e2 (diff)
downloadpython-apt-4614765fb73d85f350f4f525a216386f01cbec0d.tar.gz
* merged sebastians changes
* minor changes to them
Diffstat (limited to 'DistUpgrade/DistUpgradeControler.py')
-rw-r--r--DistUpgrade/DistUpgradeControler.py18
1 files changed, 6 insertions, 12 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py
index 6689b4d0..46ad948e 100644
--- a/DistUpgrade/DistUpgradeControler.py
+++ b/DistUpgrade/DistUpgradeControler.py
@@ -232,13 +232,6 @@ class DistUpgradeControler(object):
"%s" % e)
self.cache.commit(fprogress,iprogress)
- def askForReboot(self):
- return self._view.askYesNoQuestion(_("Reboot required"),
- _("The upgrade is finished now. "
- "A reboot is required to "
- "now, do you want to do this "
- "now?"))
-
def abort(self):
""" abort the upgrade, cleanup (as much as possible) """
self.sources.restoreBackup(self.sources_backup_ext)
@@ -248,7 +241,7 @@ class DistUpgradeControler(object):
# this is the core
def dapperUpgrade(self):
# sanity check (check for ubuntu-desktop, brokenCache etc)
- self._view.updateStatus(_("Checking the system"))
+ self._view.updateStatus(_("Checking update system"))
self._view.setStep(1)
self.openCache()
if not self.cache.sanityCheck(self._view):
@@ -267,16 +260,17 @@ class DistUpgradeControler(object):
self.abort()
# then open the cache (again)
- self._view.updateStatus(_("Reading cache"))
+ self._view.updateStatus(_("Checking update system"))
self.openCache()
# calc the dist-upgrade and see if the removals are ok/expected
# do the dist-upgrade
self._view.setStep(3)
- self._view.updateStatus(_("Performing the upgrade"))
+ self._view.updateStatus(_("Asking for confirmation"))
if not self.askDistUpgrade():
self.abort()
-
+
+ self._view.updateStatus(_("Performing the upgrade"))
if not self.doDistUpgrade():
self.abort()
@@ -285,7 +279,7 @@ class DistUpgradeControler(object):
self.doPostUpgrade()
# done, ask for reboot
- if self.askForReboot():
+ if self._view.confirmRestart():
subprocess.call(["reboot"])
def run(self):