[PATCH 1/2] Remove the code for removing an entire Root all at once.

Chris Lumens clumens at redhat.com
Fri Oct 12 17:33:58 UTC 2012


First, it simply does not work right now.  Secondly, it's not at all obvious
in the UI how you would go about doing this.  Click on the expander and then
hit remove?  Yes, but then the expander collapses and you still have a
mountpoint displayed on the right.  Which thing are you deleting then?

We need a way to do this, but I don't think this code is it.
---
 pyanaconda/ui/gui/spokes/custom.py | 24 ------------------------
 1 file changed, 24 deletions(-)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 4eabdee..b47e76d 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1715,30 +1715,6 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
                 self._destroy_device(device)
 
             log.info("ui: removed device %s" % device.name)
-        elif page:
-            # This is a complete installed system.  Thus, we first need to confirm
-            # with the user and then schedule actions to delete everything.
-            page = self._accordion.currentPage()
-            dialog = ConfirmDeleteDialog(self.data)
-
-            # Find the root this page displays.
-            root = None
-            if len(page._members) > 0:
-                root = page._members[0]._root
-
-            if not root:
-                return
-
-            with enlightbox(self.window, dialog.window):
-                dialog.refresh(None, page.pageTitle)
-                rc = dialog.run()
-
-                if rc == 0:
-                    return
-
-            # Destroy all devices.
-            for device in root.swaps + root.mounts.values():
-                self._destroy_device(device)
 
         # Now that devices have been removed from the installation root,
         # refreshing the display will have the effect of making them disappear.
-- 
1.7.11.2



More information about the anaconda-patches mailing list