summaryrefslogtreecommitdiffstats
path: root/textw
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2001-07-10 04:31:24 +0000
committerJeremy Katz <katzj@redhat.com>2001-07-10 04:31:24 +0000
commita6e885de3bd709e05a26e16f3a03ee1ac1202a83 (patch)
treec2f5f56139fe1a06339b0624146f9f32d172da3b /textw
parent40a514a8d6eedf28ce1cdb53739187cea9b56862 (diff)
downloadanaconda-a6e885de3bd709e05a26e16f3a03ee1ac1202a83.tar.gz
anaconda-a6e885de3bd709e05a26e16f3a03ee1ac1202a83.tar.xz
anaconda-a6e885de3bd709e05a26e16f3a03ee1ac1202a83.zip
gracefully handle partitions which we don't understand the fstype of
(and hence, which have an fs type of None). set to foreign fs type and allow formatting of these partitions
Diffstat (limited to 'textw')
-rw-r--r--textw/partition_text.py31
1 files changed, 15 insertions, 16 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py
index 5d7d5ea22..b5a02db10 100644
--- a/textw/partition_text.py
+++ b/textw/partition_text.py
@@ -218,7 +218,8 @@ class PartitionWindow:
if fileSystemTypeGet(name).isFormattable():
fstype.append(name, types[name])
- if request.fstype and request.fstype.getName() in names:
+ if request.fstype and request.fstype.getName() in names and \
+ request.fstype.isFormattable():
fstype.setCurrent(request.fstype)
subgrid.setField(fstype, 0, row)
if usecallback:
@@ -411,22 +412,20 @@ class PartitionWindow:
None, not format and not migrate)
subgrid.setField(noformatrb, 0, srow, (0,0,0,1),anchorLeft = 1)
- if origrequest.fstype and origrequest.fstype.isFormattable():
- srow = srow + 1
- if format:
- forflag = 1
- else:
- forflag = 0
- formatrb = SingleRadioButton(_("Format as:"), noformatrb, forflag)
- subgrid.setField(formatrb, 0, srow, (0,0,0,1), anchorLeft = 1)
-
- (fortype, forgrid) = self.makeFsList(origrequest, usecallback = 0,
- uselabel = 0)
- if newfstype and newfstype.getName() in fileSystemTypeGetTypes().keys():
- fortype.setCurrent(newfstype)
- subgrid.setField(forgrid, 1, srow, (0,0,0,1))
+ srow = srow + 1
+ if format:
+ forflag = 1
else:
- formatrb = None
+ forflag = 0
+ formatrb = SingleRadioButton(_("Format as:"), noformatrb, forflag)
+ subgrid.setField(formatrb, 0, srow, (0,0,0,1), anchorLeft = 1)
+
+ (fortype, forgrid) = self.makeFsList(origrequest, usecallback = 0,
+ uselabel = 0)
+ if newfstype and newfstype.isFormattable() and \
+ newfstype.getName() in fileSystemTypeGetTypes().keys():
+ fortype.setCurrent(newfstype)
+ subgrid.setField(forgrid, 1, srow, (0,0,0,1))
if origrequest.origfstype and origrequest.origfstype.isMigratable():
srow = srow + 1