tremc: add fix for python3.9
This commit is contained in:
parent
99496addf3
commit
f0554808e9
2 changed files with 13 additions and 2 deletions
12
srcpkgs/tremc/patches/fix-python3.9.patch
Normal file
12
srcpkgs/tremc/patches/fix-python3.9.patch
Normal file
|
@ -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:
|
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue