summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-01-11 14:21:07 +0100
committerMichael Vogt <michael.vogt@ubuntu.com>2006-01-11 14:21:07 +0100
commitd60be9b0d1a91492e34fb4a6c552eb9e4d7b992f (patch)
treef191addfce140be98fe915e6a80043c2f067d173
parent47e801bb088415254a611a86eab6ca583a63fa81 (diff)
downloadpython-apt-d60be9b0d1a91492e34fb4a6c552eb9e4d7b992f.tar.gz
* basic error checking in the commit code for download failures
-rw-r--r--DistUpgrade/DistUpgradeControler.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py
index d24a6287..d3403d49 100644
--- a/DistUpgrade/DistUpgradeControler.py
+++ b/DistUpgrade/DistUpgradeControler.py
@@ -318,7 +318,12 @@ class DistUpgradeControler(object):
self.cache.getChanges(), 0):
fprogress = self._view.getFetchProgress()
iprogress = self._view.getInstallProgress()
- self.cache.commit(fprogress,iprogress)
+ try:
+ self.cache.commit(fprogress,iprogress)
+ except IOError, e:
+ # FIXME: this can result in insanly big dialogs,
+ # need to elpise/cut e
+ self._view.error(_("Error during commit:"), e)
def askForReboot(self):
return self._view.askYesNoQuestion(_("Reboot required"),