public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Gwyn Ciesla <gwync@protonmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/duplicity] epel10: Correct types for os.join in Dropbox backend.
Date: Fri, 09 Oct 2026 15:24:19 GMT [thread overview]
Message-ID: <179155945996.1.6999847672358292103.rpms-duplicity-b927004a6531@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/duplicity
Branch : epel10
Commit : b927004a6531ec4ef97de0d1b299074520938ef0
Author : Gwyn Ciesla <gwync@protonmail.com>
Date : 2019-07-16T16:34:53-05:00
Stats : +48/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/duplicity/c/b927004a6531ec4ef97de0d1b299074520938ef0?branch=epel10
Log:
Correct types for os.join in Dropbox backend.
---
diff --git a/duplicity-0.8.01-dropbox.patch b/duplicity-0.8.01-dropbox.patch
new file mode 100644
index 0000000..5f934dd
--- /dev/null
+++ b/duplicity-0.8.01-dropbox.patch
@@ -0,0 +1,42 @@
+--- duplicity/backends/dpbxbackend.py~ 2019-06-15 15:33:52.000000000 -0500
++++ duplicity/backends/dpbxbackend.py 2019-07-16 15:39:36.491240388 -0500
+@@ -368,7 +368,7 @@
+ self.login()
+
+ remote_dir = urllib.parse.unquote(self.parsed_url.path.lstrip(u'/'))
+- remote_path = u'/' + os.path.join(remote_dir, remote_filename).rstrip()
++ remote_path = u'/' + os.path.join(remote_dir, remote_filename.decode()).rstrip()
+
+ log.Debug(u'dpbx,files_download(%s)' % remote_path)
+ res_metadata, http_fd = self.api_client.files_download(remote_path)
+--- duplicity/backends/dpbxbackend.py~ 2019-07-16 16:04:04.000000000 -0500
++++ duplicity/backends/dpbxbackend.py 2019-07-16 16:09:35.361818994 -0500
+@@ -209,7 +209,7 @@
+ @command()
+ def _put(self, source_path, remote_filename):
+ remote_dir = urllib.parse.unquote(self.parsed_url.path.lstrip(u'/'))
+- remote_path = u'/' + os.path.join(remote_dir, remote_filename).rstrip()
++ remote_path = u'/' + os.path.join(remote_dir, remote_filename.decode()).rstrip()
+
+ file_size = os.path.getsize(source_path.name)
+ progress.report_transfer(0, file_size)
+--- duplicity/backends/dpbxbackend.py~ 2019-07-16 16:09:46.000000000 -0500
++++ duplicity/backends/dpbxbackend.py 2019-07-16 16:15:40.699501802 -0500
+@@ -433,7 +433,7 @@
+ self.login()
+
+ remote_dir = urllib.parse.unquote(self.parsed_url.path.lstrip(u'/'))
+- remote_path = u'/' + os.path.join(remote_dir, filename).rstrip()
++ remote_path = u'/' + os.path.join(remote_dir, filename.decode()).rstrip()
+
+ log.Debug(u'dpbx.files_delete(%s)' % remote_path)
+ self.api_client.files_delete(remote_path)
+@@ -452,7 +452,7 @@
+ if not self.user_authenticated():
+ self.login()
+ remote_dir = urllib.parse.unquote(self.parsed_url.path.lstrip(u'/'))
+- remote_path = u'/' + os.path.join(remote_dir, filename).rstrip()
++ remote_path = u'/' + os.path.join(remote_dir, filename.decode()).rstrip()
+
+ log.Debug(u'dpbx.files_get_metadata(%s)' % remote_path)
+ info = self.api_client.files_get_metadata(remote_path)
diff --git a/duplicity.spec b/duplicity.spec
index 7595f3f..af8ee51 100644
--- a/duplicity.spec
+++ b/duplicity.spec
@@ -3,10 +3,11 @@
Summary: Encrypted bandwidth-efficient backup using rsync algorithm
Name: duplicity
Version: 0.8.01
-Release: 2%{?dist}
+Release: 3%{?dist}
License: GPLv2+
URL: http://www.nongnu.org/duplicity/
Source: https://launchpad.net/duplicity/0.8-series/%{version}/+download/duplicity-%{version}.tar.gz
+Patch0: duplicity-0.8.01-dropbox.patch
Requires: python3-lockfile
Requires: gnupg >= 1.0.6
Requires: openssh-clients, ncftp >= 3.1.9, rsync, python3-boto >= 0.9d
@@ -32,6 +33,7 @@ but not hard links.
%prep
%setup -q
+%patch0 -p0
%build
%{__python3} setup.py build
@@ -71,6 +73,9 @@ rm -rf %{buildroot}/usr/share/doc/duplicity-%{version}/tarfile-LICENSE
%{_sysconfdir}/%{name}/cacert.pem
%changelog
+* Tue Jul 16 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.8.01-3
+- Patch to fix dropbox backend.
+
* Mon Jul 15 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.8.01-2
- Require python3-future
reply other threads:[~2026-10-09 15:24 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=179155945996.1.6999847672358292103.rpms-duplicity-b927004a6531@fedoraproject.org \
--to=gwync@protonmail.com \
--cc=git-commits@fedoraproject.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