summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeControler.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-04-25 19:10:07 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-04-25 19:10:07 +0200
commit6e64cd518909238ee6bb9c992c6dfd8e173fec47 (patch)
tree1156e332320afa7f3027832c70cca0c8d0fd638d /DistUpgrade/DistUpgradeControler.py
parent9532aeb2dbdf40576b352b78d1907af82cd589c1 (diff)
downloadpython-apt-6e64cd518909238ee6bb9c992c6dfd8e173fec47.tar.gz
* DistUpgrade/DistUpgradeViewGtk.py:
- make sure dpkg --configure -a is run when something goes wrong
Diffstat (limited to 'DistUpgrade/DistUpgradeControler.py')
-rw-r--r--DistUpgrade/DistUpgradeControler.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py
index 9a03f288..ced5d968 100644
--- a/DistUpgrade/DistUpgradeControler.py
+++ b/DistUpgrade/DistUpgradeControler.py
@@ -223,12 +223,12 @@ class DistUpgradeControler(object):
res = self.cache.commit(fprogress,iprogress)
except SystemError, e:
# installing the packages failed, can't be retried
+ self._view.getTerminal().call(["dpkg","--configure","-a"])
self._view.error(_("Could not install the upgrades"),
_("The upgrade aborts now. Your system "
"can be in an unusable state. A recovery "
- "is now run (dpkg --configure -a)."),
+ "was run (dpkg --configure -a)."),
"%s" % e)
- self._view.getTerminal().call(["dpkg","--configure","-a"])
return False
except IOError, e:
# fetch failed, will be retried