summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeControler.py
diff options
context:
space:
mode:
Diffstat (limited to 'DistUpgrade/DistUpgradeControler.py')
-rw-r--r--DistUpgrade/DistUpgradeControler.py9
1 files changed, 9 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):