diff options
author | Chris Lumens <clumens@redhat.com> | 2006-03-02 21:02:30 +0000 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2006-03-02 21:02:30 +0000 |
commit | 6d81a30fe1a63f96a92c45c1dd9a25c1168bf282 (patch) | |
tree | efb4446252b5d2f8c2941a6b6318d01ca8267d06 /textw/network_text.py | |
parent | 4550faf0ca5060f9a7e639adf499b77d8201ba89 (diff) | |
download | anaconda-6d81a30fe1a63f96a92c45c1dd9a25c1168bf282.tar.gz anaconda-6d81a30fe1a63f96a92c45c1dd9a25c1168bf282.tar.xz anaconda-6d81a30fe1a63f96a92c45c1dd9a25c1168bf282.zip |
Add a function to more intelligently sort network device names (#166842).
Diffstat (limited to 'textw/network_text.py')
-rw-r--r-- | textw/network_text.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/textw/network_text.py b/textw/network_text.py index 5b9e4686e..c1202a901 100644 --- a/textw/network_text.py +++ b/textw/network_text.py @@ -55,7 +55,7 @@ class NetworkDeviceWindow: onboot = dev.get("onboot") devnames = self.devices.keys() - devnames.sort() + devnames.sort(cmp=isys.compareNetDevices) if devnames.index(dev.get("DEVICE")) == 0 and not onboot: onbootIsOn = 1 else: @@ -204,7 +204,7 @@ class NetworkDeviceWindow: return INSTALL_NOOP list = self.devices.keys() - list.sort() + list.sort(cmp=isys.compareNetDevices) devLen = len(list) if dir == 1: currentDev = 0 |