Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] tremc: add fix for python3.9
@ 2020-10-24 22:35 PaperMountainStudio
  2020-10-24 22:51 ` ericonr
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: PaperMountainStudio @ 2020-10-24 22:35 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 473 bytes --]

There is a new pull request by PaperMountainStudio against master on the void-packages repository

https://github.com/PaperMountainStudio/void-packages 0001-tremc-add-fix-for-python3.9.patch
https://github.com/void-linux/void-packages/pull/25863

tremc: add fix for python3.9
base64.decodestring does not exist in python3 anymore. This fix is upstream, but no release was made yet.

A patch file from https://github.com/void-linux/void-packages/pull/25863.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-0001-tremc-add-fix-for-python3.9.patch-25863.patch --]
[-- Type: text/x-diff, Size: 1659 bytes --]

From 33c342d38519c41915b799f3916a9058b86f355d Mon Sep 17 00:00:00 2001
From: Paper <paper@tilde.institute>
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"

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-10-25  0:19 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-24 22:35 [PR PATCH] tremc: add fix for python3.9 PaperMountainStudio
2020-10-24 22:51 ` ericonr
2020-10-24 23:17 ` [PR PATCH] [Updated] " PaperMountainStudio
2020-10-24 23:18 ` PaperMountainStudio
2020-10-25  0:16 ` ericonr
2020-10-25  0:19 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).