summaryrefslogtreecommitdiff
path: root/databases/py-pgnotify
diff options
context:
space:
mode:
authorjoerg <joerg>2016-03-25 21:15:07 +0000
committerjoerg <joerg>2016-03-25 21:15:07 +0000
commita8df174b75eeac6655cd849c19300aeebfbdcfd5 (patch)
tree15fdfdd941d4cbe49780f559984833ac18879308 /databases/py-pgnotify
parent8753c47fdcf2e4a0e5cddfd89f15d548bfa73ec0 (diff)
downloadpkgsrc-a8df174b75eeac6655cd849c19300aeebfbdcfd5.tar.gz
Avoid outdated exception throwing syntax.
Diffstat (limited to 'databases/py-pgnotify')
-rw-r--r--databases/py-pgnotify/distinfo3
-rw-r--r--databases/py-pgnotify/patches/patch-pgnotify.py16
2 files changed, 18 insertions, 1 deletions
diff --git a/databases/py-pgnotify/distinfo b/databases/py-pgnotify/distinfo
index df933c2db12..1b9ecc8c95c 100644
--- a/databases/py-pgnotify/distinfo
+++ b/databases/py-pgnotify/distinfo
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.3 2015/11/03 01:56:28 agc Exp $
+$NetBSD: distinfo,v 1.4 2016/03/25 21:15:07 joerg Exp $
SHA1 (pgnotify-0.1.zip) = 6545a994077427b481c7fc9c511dc74f6106ae39
RMD160 (pgnotify-0.1.zip) = a48a7536a6edf330bdb1eb6b83be119ce4327e56
SHA512 (pgnotify-0.1.zip) = d1b27c89290476111a1751019b3c99af72a8904e4c56d363f0bff7ac334c8773b397ca3dd264eb26402489c8a3189181b8ad7966a312a7b4a918c87588f196e5
Size (pgnotify-0.1.zip) = 6148 bytes
+SHA1 (patch-pgnotify.py) = 9b05f0685186833bad513bfd2cf0376133c9ae52
diff --git a/databases/py-pgnotify/patches/patch-pgnotify.py b/databases/py-pgnotify/patches/patch-pgnotify.py
new file mode 100644
index 00000000000..d5bcd636ba5
--- /dev/null
+++ b/databases/py-pgnotify/patches/patch-pgnotify.py
@@ -0,0 +1,16 @@
+$NetBSD: patch-pgnotify.py,v 1.1 2016/03/25 21:15:07 joerg Exp $
+
+--- pgnotify.py.orig 2016-03-25 09:35:27.000000000 +0000
++++ pgnotify.py
+@@ -99,9 +99,9 @@ class pgnotify:
+ else:
+ self.pgconn.query('unlisten "%s"' % self.event)
+ self.pgconn.query('unlisten "%s"' % self.stop)
+- raise pgnotifyError, \
++ raise pgnotifyError(
+ 'listening for ("%s", "%s") but notified of "%s"' \
+- % (self.event, self.stop, event)
++ % (self.event, self.stop, event))
+
+
+