Github messages for voidlinux
 help / color / mirror / Atom feed
From: voidlinux-github@inbox.vuxu.org
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] wicd: add patch to prevent IndexError in curses interface
Date: Sun, 16 Jun 2019 22:30:39 +0200	[thread overview]
Message-ID: <20190616203039.2yj2cSxXvKXtQJ8lPgCAbSHUytptQ4KVj9ioO8srs-4@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-12496@inbox.vuxu.org>

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

There is an updated 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: 1811 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 1/2] 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):
+

From 2c6983b527c6765b7d12f0d6cfc336f75c41db57 Mon Sep 17 00:00:00 2001
From: Spencer Burris <whiteph@protonmail.com>
Date: Sun, 16 Jun 2019 13:29:55 -0700
Subject: [PATCH 2/2] wicd: bump revision number

---
 srcpkgs/wicd/template | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/srcpkgs/wicd/template b/srcpkgs/wicd/template
index be807585983..c8d7b924b91 100644
--- a/srcpkgs/wicd/template
+++ b/srcpkgs/wicd/template
@@ -1,7 +1,7 @@
 # Template file for 'wicd'
 pkgname=wicd
 version=1.7.4
-revision=3
+revision=4
 archs=noarch
 hostmakedepends="python python-setuptools python-Babel"
 depends="dbus-glib dhcpcd ethtool net-tools python-dbus python-gobject2 python-urwid

  parent reply	other threads:[~2019-06-16 20:30 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-16 18:47 [PR PATCH] " voidlinux-github
2019-06-16 20:30 ` [PR PATCH] [Updated] " voidlinux-github
2019-06-16 20:30 ` voidlinux-github [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20190616203039.2yj2cSxXvKXtQJ8lPgCAbSHUytptQ4KVj9ioO8srs-4@z \
    --to=voidlinux-github@inbox.vuxu.org \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).