From 37bb800eeb2d1d80836392b1b2f3d832882e7b01 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Wed, 11 Jan 2006 14:35:32 +0100 Subject: * don't die on IOException from apt.Cache.update() --- DistUpgrade/DistUpgradeControler.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'DistUpgrade') 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: -- cgit v1.2.3