duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #05037
[Merge] lp:~mterry/duplicity/boto-import into lp:duplicity
Michael Terry has proposed merging lp:~mterry/duplicity/boto-import into lp:duplicity.
Requested reviews:
duplicity-team (duplicity-team)
Related bugs:
Bug #1833827 in Duplicity: "Undefined symbol name boto prevents backups to S3 "
https://bugs.launchpad.net/duplicity/+bug/1833827
For more details, see:
https://code.launchpad.net/~mterry/duplicity/boto-import/+merge/369269
A couple functions in the boto backend were using the boto module without importing it first.
--
Your team duplicity-team is requested to review the proposed merge of lp:~mterry/duplicity/boto-import into lp:duplicity.
=== 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
Follow ups