duplicity-team team mailing list archive
-
duplicity-team team
-
Mailing list archive
-
Message #03121
[Merge] lp:~ed.so/duplicity/tempfile.tempdir into lp:duplicity
edso has proposed merging lp:~ed.so/duplicity/tempfile.tempdir into lp:duplicity.
Requested reviews:
duplicity-team (duplicity-team)
For more details, see:
https://code.launchpad.net/~ed.so/duplicity/tempfile.tempdir/+merge/274820
set the duplicity's temp dir to be the default in tempfile module
--
Your team duplicity-team is requested to review the proposed merge of lp:~ed.so/duplicity/tempfile.tempdir into lp:duplicity.
=== modified file 'duplicity/tempdir.py'
--- duplicity/tempdir.py 2015-01-31 23:30:49 +0000
+++ duplicity/tempdir.py 2015-10-18 10:36:51 +0000
@@ -120,6 +120,9 @@
log.Info(_("Using temporary directory %s") % util.ufn(self.__dir))
+ # set the temp dir to be the default in tempfile module from now on
+ tempfile.tempdir = self.__dir
+
# number of mktemp()/mkstemp() calls served so far
self.__tempcount = 0
# dict of paths pending deletion; use dict even though we are