~ubuntu-branches/ubuntu/raring/duplicity/raring-updates

« back to all changes in this revision

Viewing changes to src/dup_temp.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Terry
  • Date: 2011-04-03 20:40:34 UTC
  • mfrom: (1.9.1 upstream) (16.2.6 natty)
  • Revision ID: james.westby@ubuntu.com-20110403204034-5m1eri4z5qr0nyrr
Tags: 0.6.13-0ubuntu1
* Resync with Debian, no remaining changes
* New upstream release
  - silent data corruption with checkpoint/restore (LP: #613244)
  - Assertion error "time not moving forward at appropriate pace"
    (LP: #579958)
* debian/patches/04future.dpatch:
  - Dropped, applied upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 
22
22
"""Manage temporary files"""
23
23
 
24
 
import tempfile, os, sys, errno
 
24
import os, sys
25
25
 
26
26
from duplicity import log
27
27
from duplicity import path
179
179
        elif pr.encrypted:
180
180
            gpg.GPGWriteFile(src_iter, tgt.name, globals.gpg_profile, size = sys.maxint)
181
181
        else:
182
 
            os.system("cp -p %s %s" % (src.name, tgt.name))
183
 
        globals.backend.put(tgt)
 
182
            os.system("cp -p \"%s\" \"%s\"" % (src.name, tgt.name))
 
183
        globals.backend.put(tgt) #@UndefinedVariable
184
184
        os.unlink(tgt.name)
185
185
 
186
186
    def to_final(self):