summaryrefslogtreecommitdiffstats
path: root/debian/patches/0012-Drop-sorted-from-event_handler.patch
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:50:22 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 00:50:22 +0000
commit4283a547939c204787a35239ff31758cccf2674f (patch)
tree961e298be9b22e950ab392515aa18ebb3de9bcd9 /debian/patches/0012-Drop-sorted-from-event_handler.patch
parentAdding upstream version 2.18+dfsg. (diff)
downloadirker-debian.tar.xz
irker-debian.zip
Adding debian version 2.18+dfsg-3.debian/2.18+dfsg-3debian
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'debian/patches/0012-Drop-sorted-from-event_handler.patch')
-rw-r--r--debian/patches/0012-Drop-sorted-from-event_handler.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/debian/patches/0012-Drop-sorted-from-event_handler.patch b/debian/patches/0012-Drop-sorted-from-event_handler.patch
new file mode 100644
index 0000000..3d8c20d
--- /dev/null
+++ b/debian/patches/0012-Drop-sorted-from-event_handler.patch
@@ -0,0 +1,25 @@
+From: Neil Muller <drnlmuller+debian@gmail.com>
+Date: Sun, 13 May 2018 15:14:57 +0200
+Subject: Drop sorted() from event_handler.
+
+This allows irkerd to run correctly under python 3.
+
+Forwarded: https://gitlab.com/esr/irker/merge_requests/18
+Patch-Name: 0012-fix-irkerd-sorted.patch
+---
+ irkerd | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/irkerd b/irkerd
+index 24abf08..2eca1d9 100755
+--- a/irkerd
++++ b/irkerd
+@@ -197,7 +197,7 @@ class IRCClient():
+ def handle_event(self, connection, event):
+ with self.mutex:
+ h = self.event_handlers
+- th = sorted(h.get("all_events", []) + h.get(event.type, []))
++ th = h.get("all_events", []) + h.get(event.type, [])
+ for handler in th:
+ handler(connection, event)
+