Re: [PATCH 14/22] Add net device description into selection dialog (#520146)

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

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ack.

On Tue, 27 Apr 2010, Radek Vykydal wrote:

---
iw/network_gui.py |   12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/iw/network_gui.py b/iw/network_gui.py
index d84f43f..b671fa2 100644
--- a/iw/network_gui.py
+++ b/iw/network_gui.py
@@ -156,14 +156,18 @@ def selectNetDevicesDialog(network, select_install_device=True):

        for idx, dev in enumerate(devs):
            i = store.append(None)
-            # TODORV: add description
-            hwaddr = netdevs[dev].get("HWADDR")

-            if hwaddr:
-                desc = "%s - %s" %(dev, hwaddr,)
+            desc = netdevs[dev].description
+            if desc:
+                desc = "%s - %s" %(dev, desc)
            else:
                desc = "%s" %(dev,)

+            hwaddr = netdevs[dev].get("HWADDR")
+
+            if hwaddr:
+                desc = "%s - %s" %(desc, hwaddr,)
+
            if ksdevice and ksdevice == dev:
                selected_interface_idx = idx



- -- David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkvfjxAACgkQ5hsjjIy1Vkn+FwCfbdu+h2ICj4ldZDqBM1yqU4PU
HMcAnRpS/5euqLGVJNioQ1a1uB94wLC3
=nO5A
-----END PGP SIGNATURE-----

_______________________________________________
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