[PATCH 1/2] Rename doDeleteDependentDevices to doClearPartitionedDevice for clarity.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 iw/partition_gui.py   |    2 +-
 iw/raid_dialog_gui.py |    2 +-
 partIntfHelpers.py    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/iw/partition_gui.py b/iw/partition_gui.py
index cea465d..5ebee3a 100644
--- a/iw/partition_gui.py
+++ b/iw/partition_gui.py
@@ -983,7 +983,7 @@ class PartitionWindow(InstallWindow):
         if not device:
             return
         if device.format.type == "disklabel":
-            if doDeleteDependentDevices(self.intf,
+            if doClearPartitionedDevice(self.intf,
                                         self.storage,
                                         device):
                 self.refresh()
diff --git a/iw/raid_dialog_gui.py b/iw/raid_dialog_gui.py
index 02a452e..bb457a5 100644
--- a/iw/raid_dialog_gui.py
+++ b/iw/raid_dialog_gui.py
@@ -667,7 +667,7 @@ class RaidCloneDialog:
 	# now try to clear the target drives
 	for devname in self.targetDrives:
             device = self.storage.devicetree.getDeviceByName(devname)
-            doDeleteDependentDevices(self.intf, self.storage,
+            doClearPartitionedDevice(self.intf, self.storage,
 				     device, confirm=0, quiet=1)
 
 	# now clone!
diff --git a/partIntfHelpers.py b/partIntfHelpers.py
index cf136fb..e4e4c23 100644
--- a/partIntfHelpers.py
+++ b/partIntfHelpers.py
@@ -143,7 +143,7 @@ def doDeleteDevice(intf, storage, device, confirm=1, quiet=0):
     storage.destroyDevice(device)
     return True
 
-def doDeleteDependentDevices(intf, storage, device, confirm=1, quiet=0):
+def doClearPartitionedDevice(intf, storage, device, confirm=1, quiet=0):
     """ Remove all devices/partitions currently on device.
 
             device -- a partitioned device such as a disk
-- 
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux