FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian GCC

 
 
LinkBack Thread Tools
 
Old 04-27-2010, 08:50 AM
Radek Vykydal
 
Default Add net device description into selection dialog (#520146)

---
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

--
1.6.0.6

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 
Old 05-04-2010, 03:05 AM
David Cantrell
 
Default Add net device description into selection dialog (#520146)

-----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@redhat.com>

Red Hat / Honolulu, HI

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

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

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 10:49 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org