summaryrefslogtreecommitdiff
path: root/DistUpgrade/DistUpgradeControler.py
diff options
context:
space:
mode:
authorMichael Vogt <michael.vogt@ubuntu.com>2006-03-27 15:22:54 +0200
committerMichael Vogt <michael.vogt@ubuntu.com>2006-03-27 15:22:54 +0200
commit376af57686222fcddc489ca6a6088b6a23ec1ca1 (patch)
treed26b939e2ca0892675cff8bd76f8e5097c6cf75b /DistUpgrade/DistUpgradeControler.py
parent2592b1a3ce1da07de5bd40798be04d60879a8a69 (diff)
downloadpython-apt-376af57686222fcddc489ca6a6088b6a23ec1ca1.tar.gz
* if apt fails, try to recover with "dpkg --configure -a"
Diffstat (limited to 'DistUpgrade/DistUpgradeControler.py')
-rw-r--r--DistUpgrade/DistUpgradeControler.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/DistUpgrade/DistUpgradeControler.py b/DistUpgrade/DistUpgradeControler.py
index 972ea2dc..874eaf0b 100644
--- a/DistUpgrade/DistUpgradeControler.py
+++ b/DistUpgrade/DistUpgradeControler.py
@@ -213,9 +213,10 @@ class DistUpgradeControler(object):
# installing the packages failed, can't be retried
self._view.error(_("Could not install the upgrades"),
_("The upgrade aborts now. Your system "
- "can be in an unusable state. Please "
- "try 'sudo apt-get install -f' or Synaptic "
- "to fix your system."), "%s" % e)
+ "can be in an unusable state. A recovery "
+ "is now run (dpkg --configure -a)."),
+ "%s" % e)
+ self._view.getTerminal().call(["dpkg","--configure","-a"])
return False
except IOError, e:
# fetch failed, will be retried