Date: Wed, 16 Jun 2021 08:15:20 GMT From: Ruslan Makhmatkhanov <rm@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: d799d45298dd - main - net-p2p/deluge-cli: fix runtime of deluge-web Message-ID: <202106160815.15G8FKwT053092@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by rm: URL: https://cgit.FreeBSD.org/ports/commit/?id=d799d45298dd6722721e8cd9a6ab66de3afa0ea7 commit d799d45298dd6722721e8cd9a6ab66de3afa0ea7 Author: Ruslan Makhmatkhanov <rm@FreeBSD.org> AuthorDate: 2021-06-16 08:13:39 +0000 Commit: Ruslan Makhmatkhanov <rm@FreeBSD.org> CommitDate: 2021-06-16 08:13:39 +0000 net-p2p/deluge-cli: fix runtime of deluge-web Add upstream patch to fix runtime of deluge-web with python3.8 PR: 256484 Reported by: jordy@jvwdev.nl --- net-p2p/deluge-cli/files/patch-deluge_i18n_util.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/net-p2p/deluge-cli/files/patch-deluge_i18n_util.py b/net-p2p/deluge-cli/files/patch-deluge_i18n_util.py new file mode 100644 index 000000000000..7fbb57ca5af3 --- /dev/null +++ b/net-p2p/deluge-cli/files/patch-deluge_i18n_util.py @@ -0,0 +1,14 @@ +PR: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=256484 +https://dev.deluge-torrent.org/changeset/d6c96d629183e8bab + +--- deluge/i18n/util.py.orig 2019-06-12 17:49:45 UTC ++++ deluge/i18n/util.py +@@ -114,7 +114,7 @@ def setup_translation(): + # Workaround for Python 2 unicode gettext (keyword removed in Py3). + kwargs = {} if not deluge.common.PY2 else {'unicode': True} + +- gettext.install(I18N_DOMAIN, translations_path, names='ngettext', **kwargs) ++ gettext.install(I18N_DOMAIN, translations_path, names=['ngettext'], **kwargs) + builtins.__dict__['_n'] = builtins.__dict__['ngettext'] + + libintl = None
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202106160815.15G8FKwT053092>