diff options
author | Mike Fulbright <msf@redhat.com> | 2001-07-19 23:11:32 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-07-19 23:11:32 +0000 |
commit | dc85f3cfb34da0110fbe5b71ff3f0a0eff9b5996 (patch) | |
tree | 87188fc1016c88bdcd4fb5dc0159ac8b172f78fe /textw | |
parent | 05a571dc304ad1a894ca2dae6eeacf68bf5076a1 (diff) | |
download | anaconda-dc85f3cfb34da0110fbe5b71ff3f0a0eff9b5996.tar.gz anaconda-dc85f3cfb34da0110fbe5b71ff3f0a0eff9b5996.tar.xz anaconda-dc85f3cfb34da0110fbe5b71ff3f0a0eff9b5996.zip |
yeah now print out a partition type name instead of foreign
Diffstat (limited to 'textw')
-rw-r--r-- | textw/partition_text.py | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/textw/partition_text.py b/textw/partition_text.py index 6582b8798..135431dae 100644 --- a/textw/partition_text.py +++ b/textw/partition_text.py @@ -71,6 +71,8 @@ class PartitionWindow: else: if request and request.fstype != None: ptype = request.fstype.getName() + if ptype == "foreign": + ptype = map_foreign_to_fsname(part.native_type) else: ptype = _("None") @@ -568,7 +570,11 @@ class PartitionWindow: srow = 0 typeLbl = Label(_("Filesystem Type:")) subgrid.setField(typeLbl, 0, srow, (0,0,0,1), anchorLeft = 1) - type = Label(origrequest.fstype.getName()) + ptype = origrequest.fstype.getName() + if ptype == "foreign": + part = get_partition_by_name(self.diskset.disks, origrequest.device) + ptype = map_foreign_to_fsname(part.native_type) + type = Label(ptype) subgrid.setField(type, 1, srow, (0,0,0,1), anchorRight = 1) srow = srow +1 if origrequest.type != REQUEST_NEW and origrequest.fslabel: |