diff options
author | Mike Fulbright <msf@redhat.com> | 2001-07-24 05:09:03 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-07-24 05:09:03 +0000 |
commit | dbe3a86e1b198899d061d2d10bc11956175f9beb (patch) | |
tree | 436750a42608d3fdebcf869381163c4b598863b6 /partitioning.py | |
parent | 5b3adf5230900227957b54f87a4b87ac005d6904 (diff) | |
download | anaconda-dbe3a86e1b198899d061d2d10bc11956175f9beb.tar.gz anaconda-dbe3a86e1b198899d061d2d10bc11956175f9beb.tar.xz anaconda-dbe3a86e1b198899d061d2d10bc11956175f9beb.zip |
work to make partitionless upgrades work better than before
Diffstat (limited to 'partitioning.py')
-rw-r--r-- | partitioning.py | 27 |
1 files changed, 14 insertions, 13 deletions
diff --git a/partitioning.py b/partitioning.py index 11acce538..53573697d 100644 --- a/partitioning.py +++ b/partitioning.py @@ -1274,21 +1274,22 @@ class DiskSet: except parted.error, msg: if not intf: DiskSet.skippedDisks.append(drive) - rc = intf.messageWindow(_("Warning"), - _("The partition table on device %s was unreadable. " - "To create new partitions it must be initialized, " - "causing the loss of ALL DATA on this drive.\n\n" - "Would you like to initialize this drive?") - % (drive,), type = "yesno") - if rc == 0: - DiskSet.skippedDisks.append(drive) else: - try: - dev.disk_create(getDefaultDiskType()) - disk = parted.PedDisk.open(dev) - self.disks[drive] = disk - except parted.error, msg: + rc = intf.messageWindow(_("Warning"), + _("The partition table on device %s was unreadable. " + "To create new partitions it must be initialized, " + "causing the loss of ALL DATA on this drive.\n\n" + "Would you like to initialize this drive?") + % (drive,), type = "yesno") + if rc == 0: DiskSet.skippedDisks.append(drive) + else: + try: + dev.disk_create(getDefaultDiskType()) + disk = parted.PedDisk.open(dev) + self.disks[drive] = disk + except parted.error, msg: + DiskSet.skippedDisks.append(drive) def partitionTypes (self): rc = [] |