diff options
author | Chris Lumens <clumens@redhat.com> | 2009-01-27 14:03:47 -0500 |
---|---|---|
committer | David Cantrell <dcantrell@redhat.com> | 2009-02-12 11:29:36 -1000 |
commit | e4ceb72d7a801eeaeefbadd0fa672199e10fe0b4 (patch) | |
tree | 9632f4b29d9caece6bc982eac4dad0d5f47a6cff /partIntfHelpers.py | |
parent | cd5877227d34078be7f51dc80c95d85119a0c6b1 (diff) | |
download | anaconda-e4ceb72d7a801eeaeefbadd0fa672199e10fe0b4.tar.gz anaconda-e4ceb72d7a801eeaeefbadd0fa672199e10fe0b4.tar.xz anaconda-e4ceb72d7a801eeaeefbadd0fa672199e10fe0b4.zip |
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.
Diffstat (limited to 'partIntfHelpers.py')
-rw-r--r-- | partIntfHelpers.py | 2 |
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?"), |