diff options
| author | Michael Vogt <michael.vogt@ubuntu.com> | 2006-03-27 15:22:54 +0200 |
|---|---|---|
| committer | Michael Vogt <michael.vogt@ubuntu.com> | 2006-03-27 15:22:54 +0200 |
| commit | 376af57686222fcddc489ca6a6088b6a23ec1ca1 (patch) | |
| tree | d26b939e2ca0892675cff8bd76f8e5097c6cf75b /DistUpgrade/DistUpgradeControler.py | |
| parent | 2592b1a3ce1da07de5bd40798be04d60879a8a69 (diff) | |
| download | python-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.py | 7 |
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 |
