Merge lp:~ed.so/duplicity/gpg.tmp into lp:duplicity/0.6

Proposed by edso
Status: Merged
Merged at revision: 874
Proposed branch: lp:~ed.so/duplicity/gpg.tmp
Merge into: lp:duplicity/0.6
Diff against target: 31 lines (+4/-3)
1 file modified
duplicity/gpg.py (+4/-3)
To merge this branch: bzr merge lp:~ed.so/duplicity/gpg.tmp
Reviewer Review Type Date Requested Status
duplicity-team Pending
Review via email: mp+128383@code.launchpad.net

Description of the change

place gpg.py tempfiles in duplicity's tmp subfolder which is cleaned whatever happens

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'duplicity/gpg.py'
2--- duplicity/gpg.py 2012-05-15 11:34:57 +0000
3+++ duplicity/gpg.py 2012-10-07 12:26:22 +0000
4@@ -28,6 +28,7 @@
5 from duplicity import misc
6 from duplicity import globals
7 from duplicity import GnuPGInterface
8+from duplicity import tempdir
9
10 try:
11 from hashlib import sha1
12@@ -93,8 +94,8 @@
13 """
14 self.status_fp = None # used to find signature
15 self.closed = None # set to true after file closed
16- self.logger_fp = tempfile.TemporaryFile()
17- self.stderr_fp = tempfile.TemporaryFile()
18+ self.logger_fp = tempfile.TemporaryFile( dir=tempdir.default().dir() )
19+ self.stderr_fp = tempfile.TemporaryFile( dir=tempdir.default().dir() )
20 self.name = encrypt_path
21 self.byte_count = 0
22
23@@ -149,7 +150,7 @@
24 if profile.recipients and profile.encrypt_secring:
25 cmdlist.append('--secret-keyring')
26 cmdlist.append(profile.encrypt_secring)
27- self.status_fp = tempfile.TemporaryFile()
28+ self.status_fp = tempfile.TemporaryFile( dir=tempdir.default().dir() )
29 # Skip the passphrase if using the agent
30 if globals.use_agent:
31 gnupg_fhs = ['stdout',]

Subscribers

People subscribed via source and target branches

to all changes: