diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-07 21:22:54 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-07 21:22:54 +0000 |
commit | 1cfea2a84c51291a77ab820b6871efcff10c148d (patch) | |
tree | 924f8b07cb24ba72b3d889cf4b50bdff4d2785c0 /net-p2p/deluge/files | |
parent | 441369caa3d11703d0349d4b9746b7ad10aa6cb2 (diff) |
gentoo auto-resync : 07:11:2022 - 21:22:53
Diffstat (limited to 'net-p2p/deluge/files')
-rw-r--r-- | net-p2p/deluge/files/deluge-2.1.1-twisted-22.10.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/net-p2p/deluge/files/deluge-2.1.1-twisted-22.10.patch b/net-p2p/deluge/files/deluge-2.1.1-twisted-22.10.patch new file mode 100644 index 000000000000..689721e76266 --- /dev/null +++ b/net-p2p/deluge/files/deluge-2.1.1-twisted-22.10.patch @@ -0,0 +1,31 @@ +From 29dd0fcf8a6b6256d111b2ceb67798ae73c3e0b1 Mon Sep 17 00:00:00 2001 +From: DjLegolas <djlegolas@protonmail.com> +Date: Mon, 7 Nov 2022 01:05:55 +0200 +Subject: [PATCH] [WebUI] Fix `TypeError` in DelugeWeb constractor + +In `twisted 22.10`, a check new for passing the `path` variable as +`bytes` in the `putChild` method. +We were enforcing this on every other place but the `__init__` of +`DelugeWeb` itself. + +Ref: https://github.com/twisted/twisted/pull/11718 +Closes: https://dev.deluge-torrent.org/ticket/3566 +--- + deluge/ui/web/server.py | 4 +++- + 1 file changed, 3 insertions(+), 1 deletion(-) + +diff --git a/deluge/ui/web/server.py b/deluge/ui/web/server.py +index f391a78d27..020cf9ef4f 100644 +--- a/deluge/ui/web/server.py ++++ b/deluge/ui/web/server.py +@@ -682,7 +682,9 @@ def __init__(self, options=None, daemon=True): + + if self.base != '/': + # Strip away slashes and serve on the base path as well as root path +- self.top_level.putChild(self.base.strip('/'), self.top_level) ++ self.top_level.putChild( ++ self.base.strip('/').encode('utf-8'), self.top_level ++ ) + + setup_translation() + |