From: PaperMountainStudio <PaperMountainStudio@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] tremc: add fix for python3.9
Date: Sun, 25 Oct 2020 00:35:37 +0200 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25863@inbox.vuxu.org> (raw)
[-- 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"
next reply other threads:[~2020-10-24 22:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-24 22:35 PaperMountainStudio [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-25863@inbox.vuxu.org \
--to=papermountainstudio@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).