[master/f21] Remove duplicates when adding new devices (#887526)
Vratislav Podzimek
vpodzime at redhat.com
Wed Oct 8 06:40:21 UTC 2014
On Tue, 2014-10-07 at 15:14 -0700, Brian C. Lane wrote:
> 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)
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list