diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-01-03 08:14:59 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-01-03 08:14:59 +0000 |
commit | c4c1504ed4b2333222b6aa57bd623d9631133455 (patch) | |
tree | f4380c15e1607dbf9e95899fc4ad3bd6bf54551a /autopart.py | |
parent | 6dc37b28cd5f7c30dbec803098221dc7334b8a62 (diff) | |
download | anaconda-c4c1504ed4b2333222b6aa57bd623d9631133455.tar.gz anaconda-c4c1504ed4b2333222b6aa57bd623d9631133455.tar.xz anaconda-c4c1504ed4b2333222b6aa57bd623d9631133455.zip |
a few pychecker fixes
Diffstat (limited to 'autopart.py')
-rw-r--r-- | autopart.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/autopart.py b/autopart.py index e70018d0c..d9de95222 100644 --- a/autopart.py +++ b/autopart.py @@ -89,7 +89,8 @@ def bootAlphaCheckRequirements(part, diskset): if free.type & parted.PARTITION_FREESPACE: break free = disk.next_partition(free) - if not free or free.geom.start != 1L or getPartSizeMB(free) < 1: + if (not free or free.geom.start != 1L or + partedUtils.getPartSizeMB(free) < 1): return BOOTALPHA_NO_RESERVED_SPACE return PARTITION_SUCCESS @@ -963,7 +964,7 @@ def doPartitioning(diskset, requests, doRefresh = 1): elif ret == BOOTALPHA_NO_RESERVED_SPACE: raise PartitioningWarning, _("Boot partition %s doesn't belong to a disk with enough free space at its beginning for the bootloader to live on. Make sure that there's at least 5MB of free space at the beginning of the disk that contains /boot") %(requests.getBootableRequest().mountpoint) elif ret == BOOTEFI_NOT_VFAT: - raise PartioningError, _("Boot partition %s isn't a VFAT partition. EFI won't be able to boot from this partition.") %(requests.getBootableRequest().mountpoint,) + raise PartitioningError, _("Boot partition %s isn't a VFAT partition. EFI won't be able to boot from this partition.") %(requests.getBootableRequest().mountpoint,) elif ret != PARTITION_SUCCESS: # more specific message? raise PartitioningWarning, _("Boot partition %s may not meet booting constraints for your architecture. Creation of a boot disk is highly encouraged.") %(requests.getBootableRequest().mountpoint) |