diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-22 21:29:22 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-22 21:29:22 +0100 |
| commit | a7470cfe01b96da3d387e098630d15e913f7f145 (patch) | |
| tree | d5342a1ade67a8d6848d4a6344861653d7fcd3c5 /DistUpgrade | |
| parent | 37a3751442541410f61f08d60f61a16794edf5f5 (diff) | |
| download | python-apt-a7470cfe01b96da3d387e098630d15e913f7f145.tar.gz | |
* expand the terminal on a conffile question
Diffstat (limited to 'DistUpgrade')
| -rw-r--r-- | DistUpgrade/DistUpgradeControler.py | 9 | ||||
| -rw-r--r-- | DistUpgrade/DistUpgradeViewGtk.py | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py index d7c1c84c..e67009cf 100644 --- a/DistUpgrade/DistUpgradeControler.py +++ b/DistUpgrade/DistUpgradeControler.py @@ -211,6 +211,15 @@ class DistUpgradeControler(object): changes, 0): fprogress = self._view.getFetchProgress() iprogress = self._view.getInstallProgress() + try: + res = self.cache.commit(fprogress,iprogress) + except (SystemError, IOError), e: + self._view.error(_("Error during commit"), + _("Some problem occured during the clean-up. " + "Please see the below message for more " + "information. ", + "%s" % e) + self.cache.commit(fprogress,iprogress) def askForReboot(self): diff --git a/DistUpgrade/DistUpgradeViewGtk.py b/DistUpgrade/DistUpgradeViewGtk.py index 4b4b0761..55f1f6fd 100644 --- a/DistUpgrade/DistUpgradeViewGtk.py +++ b/DistUpgrade/DistUpgradeViewGtk.py @@ -150,6 +150,7 @@ class GtkInstallProgressAdapter(InstallProgress): dialog.run() dialog.destroy() def conffile(self, current, new): + self.expander.set_expanded=True pass def fork(self): pid = self.term.forkpty(envv=self.env) |
