You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/net-nntp/sabnzbd/files/1.x/0002-growler-support-gntp-1...

32 lines
860 B

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