summaryrefslogtreecommitdiffstats
path: root/partIntfHelpers.py
diff options
context:
space:
mode:
Diffstat (limited to 'partIntfHelpers.py')
-rw-r--r--partIntfHelpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/partIntfHelpers.py b/partIntfHelpers.py
index 2766970c8..f2338ded2 100644
--- a/partIntfHelpers.py
+++ b/partIntfHelpers.py
@@ -382,7 +382,7 @@ def checkForSwapNoMatch(anaconda):
part = parted.getPartitionByName(request.device)
if (part and (not part.type & parted.PARTITION_FREESPACE)
- and (part.native_type == 0x82)
+ and (part.get_flag(parted.LINUX_SWAP))
and (request.fstype and request.fstype.getName() != "swap")
and (not request.format)):
rc = anaconda.intf.messageWindow(_("Format as Swap?"),