public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/duplicity] epel10: Correct types for os.join in Dropbox backend.
@ 2026-10-09 15:24 Gwyn Ciesla
  0 siblings, 0 replies; only message in thread
From: Gwyn Ciesla @ 2026-10-09 15:24 UTC (permalink / raw)
  To: git-commits

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
 

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-09 15:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-09 15:24 [rpms/duplicity] epel10: Correct types for os.join in Dropbox backend Gwyn Ciesla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox