From 33c342d38519c41915b799f3916a9058b86f355d Mon Sep 17 00:00:00 2001 From: Paper Date: Sun, 25 Oct 2020 00:34:14 +0200 Subject: [PATCH] tremc: add fix for python3.9 --- srcpkgs/tremc/patches/fix-python3.9.patch | 11 +++++++++++ srcpkgs/tremc/template | 3 +-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 srcpkgs/tremc/patches/fix-python3.9.patch diff --git a/srcpkgs/tremc/patches/fix-python3.9.patch b/srcpkgs/tremc/patches/fix-python3.9.patch new file mode 100644 index 00000000000..78412546575 --- /dev/null +++ b/srcpkgs/tremc/patches/fix-python3.9.patch @@ -0,0 +1,11 @@ +--- tremc ++++ tremc +@@ -438,7 +438,7 @@ class Transmission(object): + # TAG_TORRENT_DETAILS, but just passing seems to help.(?) + try: + torrent_details = response['arguments']['torrents'][0] +- torrent_details['pieces'] = base64.decodestring(bytes(torrent_details['pieces'], ENCODING)) ++ torrent_details['pieces'] = base64.decodebytes(bytes(torrent_details['pieces'], ENCODING)) + self.torrent_details_cache = torrent_details + self.upgrade_peerlist() + except IndexError: diff --git a/srcpkgs/tremc/template b/srcpkgs/tremc/template index 8bba9b83fd1..227ca61dc2c 100644 --- a/srcpkgs/tremc/template +++ b/srcpkgs/tremc/template @@ -1,8 +1,7 @@ # Template file for 'tremc' pkgname=tremc version=0.9.2 -revision=1 -archs=noarch +revision=2 build_style=gnu-makefile depends="python3" short_desc="Console client for the BitTorrent client Transmission"