summaryrefslogtreecommitdiffstats
path: root/partIntfHelpers.py
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2006-05-04 19:58:53 +0000
committerChris Lumens <clumens@redhat.com>2006-05-04 19:58:53 +0000
commit9e1a444c46abcfc29c2e44ffd102fcc1eda6289e (patch)
treefc10e993fe6c8292fbd0cb57fb6ad4135b0a8fad /partIntfHelpers.py
parent2d90bc12dcc682a7f0ff68e599cbb81a34a0b4a3 (diff)
downloadanaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.tar.gz
anaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.tar.xz
anaconda-9e1a444c46abcfc29c2e44ffd102fcc1eda6289e.zip
Make all UI steps use anaconda class. Add system-config-keyboard shim.
Diffstat (limited to 'partIntfHelpers.py')
-rw-r--r--partIntfHelpers.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/partIntfHelpers.py b/partIntfHelpers.py
index 10c97f578..5d7f9338f 100644
--- a/partIntfHelpers.py
+++ b/partIntfHelpers.py
@@ -365,19 +365,19 @@ def doEditPartitionByRequest(intf, requestlist, part):
% (partedUtils.get_partition_name(part)))
-def checkForSwapNoMatch(intf, diskset, partitions):
+def checkForSwapNoMatch(anaconda):
"""Check for any partitions of type 0x82 which don't have a swap fs."""
- for request in partitions.requests:
+ for request in anaconda.id.partitions.requests:
if not request.device or not request.fstype:
continue
- part = partedUtils.get_partition_by_name(diskset.disks,
+ part = partedUtils.get_partition_by_name(anaconda.id.diskset.disks,
request.device)
if (part and (not part.type & parted.PARTITION_FREESPACE)
and (part.native_type == 0x82)
and (request.fstype and request.fstype.getName() != "swap")
and (not request.format)):
- rc = intf.messageWindow(_("Format as Swap?"),
+ rc = anaconda.intf.messageWindow(_("Format as Swap?"),
_("/dev/%s has a partition type of 0x82 "
"(Linux swap) but does not appear to "
"be formatted as a Linux swap "