git: d799d45298dd - main - net-p2p/deluge-cli: fix runtime of deluge-web

Ruslan Makhmatkhanov rm at FreeBSD.org
Wed Jun 16 08:15:20 UTC 2021


The branch main has been updated by rm:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d799d45298dd6722721e8cd9a6ab66de3afa0ea7

commit d799d45298dd6722721e8cd9a6ab66de3afa0ea7
Author:     Ruslan Makhmatkhanov <rm at FreeBSD.org>
AuthorDate: 2021-06-16 08:13:39 +0000
Commit:     Ruslan Makhmatkhanov <rm at 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 at 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


More information about the dev-commits-ports-main mailing list