[PATCH 2/3] Show device names for devices in the Unknown page/subsection. (#855646)
David Lehman
dlehman at redhat.com
Tue Nov 20 18:55:55 UTC 2012
---
pyanaconda/ui/gui/spokes/custom.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index a4097aa..329c639 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -682,8 +682,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
page = UnknownPage()
page.pageTitle = _("Unknown")
- for u in self.unusedDevices:
- selector = page.addDevice(u.format.name, Size(spec="%f MB" % u.size), None, self.on_selector_clicked)
+ for u in sorted(self.unusedDevices, key=lambda d: d.name):
+ selector = page.addDevice(u.name, Size(spec="%f MB" % u.size), u.format.name, self.on_selector_clicked)
selector._device = u
page.show_all()
--
1.7.7.6
More information about the anaconda-patches
mailing list