X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Ffstransactions.py;h=eb4874a1083ef083781270480165a77dfb1e975a;hb=391f5ec09a119131dc846b796ca791f4cecc69e4;hp=d07139f9dc79caa71869e47a42f0f2a20e052e7b;hpb=27392942032f853b74e097a7016d958ed93eac9c;p=dak.git diff --git a/daklib/fstransactions.py b/daklib/fstransactions.py index d07139f9..eb4874a1 100644 --- a/daklib/fstransactions.py +++ b/daklib/fstransactions.py @@ -57,9 +57,9 @@ class _FilesystemCopyAction(_FilesystemAction): try: os.link(source, self.destination) except OSError: - shutil.copy(source, self.destination) + shutil.copy2(source, self.destination) else: - shutil.copy(source, self.destination) + shutil.copy2(source, self.destination) self.need_cleanup = True if mode is not None: @@ -122,7 +122,7 @@ class FilesystemTransaction(object): def __init__(self): self.actions = [] - def copy(self, source, destination, link=True, symlink=False, mode=None): + def copy(self, source, destination, link=False, symlink=False, mode=None): """copy C{source} to C{destination} @type source: str