From e4ceb72d7a801eeaeefbadd0fa672199e10fe0b4 Mon Sep 17 00:00:00 2001 From: Chris Lumens Date: Tue, 27 Jan 2009 14:03:47 -0500 Subject: Don't use the native_type flag anymore. In the old pyparted, this flag was marked with all sorts of warnings about how it would go away once certain constants were supported. We now support all the constants libparted exposes, so we don't need to keep ancient hacks around anymore. --- partIntfHelpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'partIntfHelpers.py') 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?"), -- cgit