diff options
author | leot <leot@pkgsrc.org> | 2020-10-09 15:43:07 +0000 |
---|---|---|
committer | leot <leot@pkgsrc.org> | 2020-10-09 15:43:07 +0000 |
commit | 56b0706c29976221d7acd559103d88c39c2eefb1 (patch) | |
tree | cd8d4ca970061c23082b69c0039e7322ee6d7266 /net/py-rt | |
parent | 820560dd34e0ff14c3491f88b7528e63699f52f2 (diff) | |
download | pkgsrc-56b0706c29976221d7acd559103d88c39c2eefb1.tar.gz |
py-rt: Update to 2.0.1
pkgsrc changes:
- Remove no longer needed patch-rt.py, now applied upstream.
Changes:
2.0.1
-----
- Fix UnicodeDecodeError in logging code for non-text attachments
- Documentation: Add a search example
- edit_ticket: Handle possible empty responses: When a ticket is not
modified, at least with RT 4.x, an empty response could be returned.
Gracefully handle that as success.
Diffstat (limited to 'net/py-rt')
-rw-r--r-- | net/py-rt/Makefile | 4 | ||||
-rw-r--r-- | net/py-rt/distinfo | 11 | ||||
-rw-r--r-- | net/py-rt/patches/patch-rt.py | 20 |
3 files changed, 7 insertions, 28 deletions
diff --git a/net/py-rt/Makefile b/net/py-rt/Makefile index 88306913454..365bbafcabb 100644 --- a/net/py-rt/Makefile +++ b/net/py-rt/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.6 2020/02/24 14:38:25 leot Exp $ +# $NetBSD: Makefile,v 1.7 2020/10/09 15:43:07 leot Exp $ -DISTNAME= rt-2.0.0 +DISTNAME= rt-2.0.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= net python MASTER_SITES= ${MASTER_SITE_PYPI:=r/rt/} diff --git a/net/py-rt/distinfo b/net/py-rt/distinfo index 705e8a9a903..49b4edd496e 100644 --- a/net/py-rt/distinfo +++ b/net/py-rt/distinfo @@ -1,7 +1,6 @@ -$NetBSD: distinfo,v 1.7 2020/03/12 12:06:09 leot Exp $ +$NetBSD: distinfo,v 1.8 2020/10/09 15:43:07 leot Exp $ -SHA1 (py-rt/rt-2.0.0.tar.gz) = 83095414750acef5f9a331249b26c9270d011f9e -RMD160 (py-rt/rt-2.0.0.tar.gz) = 2f4fb8586c6050dfec35d90a9d7edd187c398edc -SHA512 (py-rt/rt-2.0.0.tar.gz) = a70cef437f66b97f6d19a62f1d1a7d12633d2092da727599419aeabdd6f41e26cf97a531b745eac7bcd77ca7a39805c71a66dc5f610cbc352f8aa28a2f682967 -Size (py-rt/rt-2.0.0.tar.gz) = 38703 bytes -SHA1 (patch-rt.py) = 67461e2c4aa10be0cf07578ed6a7b9e7fdff7514 +SHA1 (py-rt/rt-2.0.1.tar.gz) = 99b8b82162134618d7aa5013e410dbeea7009415 +RMD160 (py-rt/rt-2.0.1.tar.gz) = 2ec2ae3027ac79cdf1f991c72ddbbda0354948fd +SHA512 (py-rt/rt-2.0.1.tar.gz) = 36cea59fa72e083616834a5fb3e8c68a45b0f478b1d0def356793c504bf1f09af36b6e6700eb50ed5fa5132bfe9dd3635951153052eaa98d5e874ab33c988f21 +Size (py-rt/rt-2.0.1.tar.gz) = 40271 bytes diff --git a/net/py-rt/patches/patch-rt.py b/net/py-rt/patches/patch-rt.py deleted file mode 100644 index c4fcb7833fc..00000000000 --- a/net/py-rt/patches/patch-rt.py +++ /dev/null @@ -1,20 +0,0 @@ -$NetBSD: patch-rt.py,v 1.5 2020/03/12 12:06:09 leot Exp $ - -In RT 4 when a ticket is not modified an empty response is returned. -Treat it as a successfull operation. - -Shared upstream via: - - <https://github.com/CZ-NIC/python-rt/pull/48> - ---- rt/rt.py.orig 2019-10-25 12:58:58.000000000 +0000 -+++ rt/rt.py -@@ -736,6 +736,8 @@ class Rt: - """ - post_data = self.__ticket_post_data(kwargs) - msg = self.__request('ticket/{}/edit'.format(str(ticket_id)), post_data={'content': post_data}) -+ if "" == msg: # Ticket not modified -+ return True - state = msg.split('\n')[2] - return self.RE_PATTERNS['update_pattern'].match(state) is not None - |