diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-11 14:35:32 +0100 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-01-11 14:35:32 +0100 |
| commit | 37bb800eeb2d1d80836392b1b2f3d832882e7b01 (patch) | |
| tree | 83de1e05ec186c6a3328dd86de79aede61ba7cf1 | |
| parent | d60be9b0d1a91492e34fb4a6c552eb9e4d7b992f (diff) | |
| download | python-apt-37bb800eeb2d1d80836392b1b2f3d832882e7b01.tar.gz | |
* don't die on IOException from apt.Cache.update()
| -rw-r--r-- | DistUpgrade/DistUpgradeControler.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py index d3403d49..135b93aa 100644 --- a/DistUpgrade/DistUpgradeControler.py +++ b/DistUpgrade/DistUpgradeControler.py @@ -270,7 +270,12 @@ class DistUpgradeControler(object): def doUpdate(self): self.cache._list.ReadMainList() progress = self._view.getFetchProgress() - self.cache.update(progress) + try: + self.cache.update(progress) + except IOError, e: + # FIXME: this can result in insanly big dialogs, + # need to elpise/cut e + self._view.error(_("Error during commit:"), e) def askDistUpgrade(self): try: |
