Don't unconditionally unskip the partition step on failure (#567889).
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Wed, 24 Feb 2010, Chris Lumens wrote:
Remember that this step does not exist in text mode and we therefore cannot
add it back into the step list when autopart fails.
---
storage/partitioning.py | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/storage/partitioning.py b/storage/partitioning.py
index 87154ee..7001d41 100644
--- a/storage/partitioning.py
+++ b/storage/partitioning.py
@@ -232,7 +232,9 @@ def doAutoPartition(anaconda):
anaconda.storage.reset()
if not anaconda.ksdata:
extra = ""
- anaconda.dispatch.skipStep("partition", skip = 0)
+
+ if anaconda.displayMode != "t":
+ anaconda.dispatch.skipStep("partition", skip = 0)
else:
extra = _("
Press 'OK' to exit the installer.")
anaconda.intf.messageWindow(_("Error Partitioning"),