diff --git a/srcpkgs/tremc/patches/fix-python3.9.patch b/srcpkgs/tremc/patches/fix-python3.9.patch new file mode 100644 index 00000000000..bb489fd7e96 --- /dev/null +++ b/srcpkgs/tremc/patches/fix-python3.9.patch @@ -0,0 +1,12 @@ +# upstream: yes +--- 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"