summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-07-10 02:23:02 +0000
committerMike Fulbright <msf@redhat.com>2001-07-10 02:23:02 +0000
commit285a12ac56049c541a38954a443b9ef8b9ee1032 (patch)
treef2573f4e6289a97d1390590510606d404c191048 /textw
parent3ac92db9185e18c17ad2e5c342aeaa9948239228 (diff)
downloadanaconda-285a12ac56049c541a38954a443b9ef8b9ee1032.tar.gz
anaconda-285a12ac56049c541a38954a443b9ef8b9ee1032.tar.xz
anaconda-285a12ac56049c541a38954a443b9ef8b9ee1032.zip
warn user if we're going to blow away data to autopartition
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 74a545427..5d7d5ea22 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -919,13 +919,17 @@ class AutoPartitionWindow:
bb = ButtonBar(screen, [ TEXT_OK_BUTTON, TEXT_BACK_BUTTON ])
self.g.add(bb, 0, 4, (0,1,0,0))
- rc = self.g.run()
- res = bb.buttonPressed(rc)
+ while 1:
+ rc = self.g.run()
+ res = bb.buttonPressed(rc)
- screen.popWindow()
- if res == TEXT_BACK_CHECK:
- return INSTALL_BACK
+ if res == TEXT_BACK_CHECK:
+ screen.popWindow()
+ return INSTALL_BACK
- partitions.autoClearPartType = typebox.current()
- partitions.autoClearPartDrives = drivelist.getSelection()
- return INSTALL_OK
+ partitions.autoClearPartType = typebox.current()
+ partitions.autoClearPartDrives = drivelist.getSelection()
+
+ if queryAutoPartitionOK(intf, diskset, partitions):
+ screen.popWindow()
+ return INSTALL_OK