mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-05 06:33:50 +02:00
wicd: add patch to prevent IndexError in curses interface
This commit is contained in:
parent
139c38339c
commit
cf0f5cb3f9
2 changed files with 20 additions and 4 deletions
16
srcpkgs/wicd/patches/wicd-1421918.patch
Normal file
16
srcpkgs/wicd/patches/wicd-1421918.patch
Normal 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):
|
||||||
|
|
|
@ -1,20 +1,20 @@
|
||||||
# Template file for 'wicd'
|
# Template file for 'wicd'
|
||||||
pkgname=wicd
|
pkgname=wicd
|
||||||
version=1.7.4
|
version=1.7.4
|
||||||
revision=3
|
revision=4
|
||||||
archs=noarch
|
archs=noarch
|
||||||
|
pycompile_module="wicd"
|
||||||
|
pycompile_dirs="usr/lib/wicd usr/share/wicd"
|
||||||
hostmakedepends="python python-setuptools python-Babel"
|
hostmakedepends="python python-setuptools python-Babel"
|
||||||
depends="dbus-glib dhcpcd ethtool net-tools python-dbus python-gobject2 python-urwid
|
depends="dbus-glib dhcpcd ethtool net-tools python-dbus python-gobject2 python-urwid
|
||||||
util-linux wireless_tools wpa_supplicant"
|
util-linux wireless_tools wpa_supplicant"
|
||||||
pycompile_module="wicd"
|
|
||||||
pycompile_dirs="usr/lib/wicd usr/share/wicd"
|
|
||||||
conf_files="
|
conf_files="
|
||||||
/etc/dbus-1/system.d/wicd.conf
|
/etc/dbus-1/system.d/wicd.conf
|
||||||
/etc/wicd/encryption/templates/active"
|
/etc/wicd/encryption/templates/active"
|
||||||
short_desc="Open source wired and wireless network manager"
|
short_desc="Open source wired and wireless network manager"
|
||||||
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
maintainer="Juan RP <xtraeme@voidlinux.org>"
|
||||||
homepage="http://wicd.sourceforge.net"
|
|
||||||
license="GPL-2"
|
license="GPL-2"
|
||||||
|
homepage="http://wicd.sourceforge.net"
|
||||||
distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
|
distfiles="http://launchpad.net/wicd/1.7/${version}/+download/wicd-${version}.tar.gz"
|
||||||
checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62
|
checksum=67989614004773db349791c37675efb914d084bdb221356a05e4369c35e7eb62
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue