wicd: add patch to prevent IndexError in curses interface

This commit is contained in:
Spencer Burris 2019-06-16 14:03:27 -07:00 committed by Helmut Pozimski
parent 139c38339c
commit cf0f5cb3f9
2 changed files with 20 additions and 4 deletions

View file

@ -0,0 +1,16 @@
=== modified file 'curses/wicd-curses.py'
--- curses/wicd-curses.py 2014-12-21 16:57:33 +0000
+++ curses/wicd-curses.py 2015-02-24 23:41:01 +0000
@@ -532,7 +532,10 @@
def get_selected_profile(self):
"""Get the selected wired profile"""
loc = self.get_focus()[1]
- return self.theList[loc]
+ if len(self.theList) > loc:
+ return self.theList[loc]
+ else:
+ return self.theList[-1]
class AdHocDialog(Dialog2):

View file

@ -1,20 +1,20 @@
# Template file for 'wicd'
pkgname=wicd
version=1.7.4
revision=3
revision=4
archs=noarch
pycompile_module="wicd"
pycompile_dirs="usr/lib/wicd usr/share/wicd"
hostmakedepends="python python-setuptools python-Babel"
depends="dbus-glib dhcpcd ethtool net-tools python-dbus python-gobject2 python-urwid
util-linux wireless_tools wpa_supplicant"
pycompile_module="wicd"
pycompile_dirs="usr/lib/wicd usr/share/wicd"
conf_files="
/etc/dbus-1/system.d/wicd.conf
/etc/wicd/encryption/templates/active"
short_desc="Open source wired and wireless network manager"
maintainer="Juan RP <xtraeme@voidlinux.org>"
homepage="http://wicd.sourceforge.net"
license="GPL-2"
homepage="http://wicd.sourceforge.net"
distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62