summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-nntp/sabnzbd/files/1.x/0002-growler-support-gntp-1.0.patch')
-rw-r--r--net-nntp/sabnzbd/files/1.x/0002-growler-support-gntp-1.0.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/net-nntp/sabnzbd/files/1.x/0002-growler-support-gntp-1.0.patch b/net-nntp/sabnzbd/files/1.x/0002-growler-support-gntp-1.0.patch
new file mode 100644
index 000000000000..845ab15e8e63
--- /dev/null
+++ b/net-nntp/sabnzbd/files/1.x/0002-growler-support-gntp-1.0.patch
@@ -0,0 +1,31 @@
+From 14eabdcd495be61bb14ecc8152058f92bd71a2db Mon Sep 17 00:00:00 2001
+From: Justin Bronder <jsbronder@gmail.com>
+Date: Mon, 24 Jun 2013 19:03:17 -0400
+Subject: [PATCH 2/4] growler: support >=gntp-1.0
+
+Fixes Gentoo bug https://bugs.gentoo.org/show_bug.cgi?id=474540
+---
+ sabnzbd/growler.py | 7 ++++++-
+ 1 file changed, 6 insertions(+), 1 deletion(-)
+
+diff --git a/sabnzbd/growler.py b/sabnzbd/growler.py
+index 34d73c4..cd1ce91 100644
+--- a/sabnzbd/growler.py
++++ b/sabnzbd/growler.py
+@@ -37,7 +37,12 @@ import sabnzbd.cfg
+ from sabnzbd.encoding import unicoder
+ from sabnzbd.constants import NOTIFY_KEYS
+
+-from gntp import GNTPRegister
++try:
++ # <= version 0.6
++ from gntp import GNTPRegister
++except ImportError:
++ # >= version 1.0
++ from gntp.core import GNTPRegister
+ from gntp.notifier import GrowlNotifier
+ try:
+ import Growl
+--
+2.4.10
+