summaryrefslogtreecommitdiffstats
path: root/textw/partition_text.py
diff options
context:
space:
mode:
Diffstat (limited to 'textw/partition_text.py')
-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 0d7330967..07964dc5d 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -668,20 +668,24 @@ class PartitionWindow:
continue
else:
# pre-existing partition, just set mount point and format flag
- if origrequest.fstype.isMountable():
- origrequest.mountpoint = self.mount.value()
+ request = copy.copy(origrequest)
+ if request.fstype.isMountable():
+ request.mountpoint = self.mount.value()
- origrequest.format = format
- origrequest.migrate = migrate
- origrequest.fstype = newfstype
- origrequest.badblocks = badblocks
+ request.format = format
+ request.migrate = migrate
+ request.fstype = newfstype
+ request.badblocks = badblocks
- err = sanityCheckPartitionRequest(self.partitions, origrequest)
+ err = sanityCheckPartitionRequest(self.partitions, request)
if err:
self.intf.messageWindow(_("Error With Request"),
"%s" % (err))
continue
- request = origrequest
+
+ if origrequest.format == None and request.format:
+ if not queryFormatPreExisting(self.intf):
+ continue
# backup current (known working) configuration
backpart = self.partitions.copy()