[PATCH] Fix bootloader driveorder dialog.

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

 



_genStore expects disk objects, not disk names.
---
 iw/bootloader_main_gui.py |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/iw/bootloader_main_gui.py b/iw/bootloader_main_gui.py
index 5f2fec5..fa5d554 100644
--- a/iw/bootloader_main_gui.py
+++ b/iw/bootloader_main_gui.py
@@ -98,11 +98,9 @@ class MainBootloaderWindow(InstallWindow):
             combo.set_attributes(cell, text = 0)
 
             for disk in disks:
-                size = disk.size
-                m = disk.description
-
                 i = model.append(None)
-                model[i] = ("%s %8.0f MB %s" %(disk.name, size, m),
+                model[i] = ("%s %8.0f MB %s" %(disk.name, disk.size,
+                                               disk.description),
                             "%s" %(disk.name,))
                 if disk.name == active:
                     combo.set_active_iter(i)
@@ -138,7 +136,7 @@ class MainBootloaderWindow(InstallWindow):
             lbl.show()
             partitioned = anaconda.id.storage.partitioned
             disks = anaconda.id.storage.disks
-            bl_disks = [d.name for d in disks if d in partitioned]
+            bl_disks = [d for d in disks if d in partitioned]
             m = __genStore(combo, bl_disks, self.driveorder[i - 1])
 
         dxml.get_widget("bd1Combo").connect("changed", __driveChange, dxml, choices)
-- 
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