[master/f21] Remove duplicates when adding new devices (#887526)
Brian C. Lane
bcl at redhat.com
Tue Oct 7 22:14:20 UTC 2014
bootLoaderDevices is added automatically so if the device that was just
added is one of them we were ending up with two of them. This makes sure
there aren't any duplicates.
---
pyanaconda/ui/gui/spokes/custom.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 9178c25..d926aca 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -560,6 +560,7 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
# also pull in biosboot and prepboot that are on our boot disk
devices.extend(self.bootLoaderDevices)
+ devices = list(set(devices))
for _device in devices:
page.addSelector(_device, self.on_selector_clicked)
--
1.9.3
More information about the anaconda-patches
mailing list