[PATCH 1/2] Fix up handling of preexisting partitions.

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

 



Don't set exists or migrate flags in a widget callback -- they will be
set when the user clicks "OK". Likewise, don't try to preserve exists or
size attributes when user has chosen to reformat the device.
---
 iw/partition_dialog_gui.py     |    2 --
 iw/partition_ui_helpers_gui.py |    9 ---------
 2 files changed, 0 insertions(+), 11 deletions(-)

diff --git a/iw/partition_dialog_gui.py b/iw/partition_dialog_gui.py
index c4fab06..e19b229 100644
--- a/iw/partition_dialog_gui.py
+++ b/iw/partition_dialog_gui.py
@@ -230,8 +230,6 @@ class PartitionEditor:
                         # carry over exists, migrate, size, and device
                         # necessary for partition editor UI
                         format = fmt_class(mountpoint=mountpoint,
-                                           exists=origformat.exists,
-                                           size=getattr(origformat, "size", None),
                                            device=usedev.path)
 
                         luksdev = None
diff --git a/iw/partition_ui_helpers_gui.py b/iw/partition_ui_helpers_gui.py
index fe28088..3d02704 100644
--- a/iw/partition_ui_helpers_gui.py
+++ b/iw/partition_ui_helpers_gui.py
@@ -255,15 +255,6 @@ def formatMigrateOptionCB(widget, data):
     (combowidget, mntptcombo, fs, lukscb, othercombo, othercb, flag) = data
     combowidget.set_sensitive(widget.get_active())
 
-    if flag == FLAG_FORMAT:
-        fs.exists = not widget.get_active()
-
-        if fs.migratable and fs.exists:
-            fs.migrate = False
-    elif flag == FLAG_MIGRATE:
-        fs.exists = True
-        fs.migrate = widget.get_active()
-
     if othercb is not None:
         othercb.set_sensitive(not widget.get_active())
         othercb.set_active(False)
-- 
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