Commit 11cd4344 authored by Michael Terry's avatar Michael Terry

snap: Add patch to fix boto backend

parent a2a40d2d
Pipeline #90610 passed with stage
in 8 minutes and 34 seconds
=== modified file 'duplicity/backends/_boto_multi.py'
--- duplicity/backends/_boto_multi.py 2019-06-17 15:10:58 +0000
+++ duplicity/backends/_boto_multi.py 2019-06-24 22:27:26 +0000
@@ -113,6 +113,8 @@
self._pool.join()
def upload(self, filename, key, headers=None):
+ import boto
+
chunk_size = globals.s3_multipart_chunk_size
# Check minimum chunk size for S3
=== modified file 'duplicity/backends/_boto_single.py'
--- duplicity/backends/_boto_single.py 2019-06-17 15:10:58 +0000
+++ duplicity/backends/_boto_single.py 2019-06-24 22:27:26 +0000
@@ -182,6 +182,8 @@
del self.storage_uri
def resetConnection(self):
+ import boto
+
if getattr(self, u'conn', False):
self.conn.close()
self.bucket = None
......@@ -63,7 +63,8 @@ parts:
snapcraftctl prime
patch -d lib/python3.6/site-packages -p0 < fsdecode.patch
patch -d lib/python3.6/site-packages -p0 < uexc.patch
rm fsdecode.patch uexc.patch
patch -d lib/python3.6/site-packages -p0 < boto.patch
rm fsdecode.patch uexc.patch boto.patch
deja-dup:
plugin: meson
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment