fix bug 1909 about partition

modified:   new_partition/interface_partition.py
This commit is contained in:
Peng Zhihui
2014-06-24 13:26:46 +08:00
parent bbf7182fbf
commit 3a81e8bc6b

View File

@@ -916,7 +916,7 @@ def del_msdos_partition(partition,dev):
elif re.search('free', pre_partition) and not re.search('free', next_partition):
if locals().has_key('extended_start') and \
(float(get_num(p_d.Partition.dict[dev]['partition'][pre_partition]['start']))\
>= float(get_num(extended_start)) or \
>= float(get_num(extended_start)) and \
float(get_num(p_d.Partition.dict[dev]['partition'][pre_partition]['end']))\
<= float(get_num(extended_end))):
len_free_list = len(p_d.sort_partitions(p_d.Partition.dict, dev, "free"))