From 178359ae0050d0d8a02a7f4c3a9a4dc7ff9fbd5d Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Tue, 26 Jun 2001 03:41:35 +0000 Subject: remove the logicals when the extended is deleted --- iw/partition_gui.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'iw') diff --git a/iw/partition_gui.py b/iw/partition_gui.py index 509c33f5b..8ba6c9c7e 100644 --- a/iw/partition_gui.py +++ b/iw/partition_gui.py @@ -941,7 +941,11 @@ class PartitionWindow(InstallWindow): self.partitions.removeRequest(request) if request.type == REQUEST_PREEXIST: # get the drive - drive = partition.geom.disk.dev.path[5:] + drive = get_partition_drive(partition) + + if partition.type & parted.PARTITION_EXTENDED: + deleteAllLogicalPartitions(partition, self.partitions) + delete = DeleteSpec(drive, partition.geom.start, partition.geom.end) self.partitions.addDelete(delete) else: # shouldn't happen -- cgit