Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] wicd: add patch to prevent IndexError in curses interface
@ 2019-06-16 18:47 voidlinux-github
  2019-06-16 20:30 ` [PR PATCH] [Updated] " voidlinux-github
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: voidlinux-github @ 2019-06-16 18:47 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 372 bytes --]

There is a new pull request by hereforthebugs against master on the void-packages repository

https://github.com/hereforthebugs/void-packages wicd-patch
https://github.com/void-linux/void-packages/pull/12496

wicd: add patch to prevent IndexError in curses interface
Fixes #12485 

A patch file from https://github.com/void-linux/void-packages/pull/12496.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-wicd-patch-12496.patch --]
[-- Type: application/text/x-diff, Size: 1113 bytes --]

From 9517756946e41aaaa7af5d47031b57211e421859 Mon Sep 17 00:00:00 2001
From: Spencer Burris <whiteph@protonmail.com>
Date: Sun, 16 Jun 2019 11:36:36 -0700
Subject: [PATCH] wicd: add patch to prevent IndexError in curses interface

---
 srcpkgs/wicd/patches/wicd-1421918.patch | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 srcpkgs/wicd/patches/wicd-1421918.patch

diff --git a/srcpkgs/wicd/patches/wicd-1421918.patch b/srcpkgs/wicd/patches/wicd-1421918.patch
new file mode 100644
index 00000000000..f855ec5b1cc
--- /dev/null
+++ b/srcpkgs/wicd/patches/wicd-1421918.patch
@@ -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):
+

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2019-06-17 15:21 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-16 18:47 [PR PATCH] wicd: add patch to prevent IndexError in curses interface voidlinux-github
2019-06-16 20:30 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-16 20:30 ` voidlinux-github
2019-06-16 20:37 ` voidlinux-github
2019-06-16 20:37 ` voidlinux-github
2019-06-16 21:20 ` voidlinux-github
2019-06-16 21:20 ` voidlinux-github
2019-06-17 15:21 ` [PR PATCH] [Merged]: " voidlinux-github

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).