X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Ffstransactions.py;h=eb4874a1083ef083781270480165a77dfb1e975a;hb=391f5ec09a119131dc846b796ca791f4cecc69e4;hp=dbc42647b0dd209e63b834bf97ecbf39ed0fe7c8;hpb=a59943955fb5bb0c86cc60cafe58d5f2cdf129b7;p=dak.git diff --git a/daklib/fstransactions.py b/daklib/fstransactions.py index dbc42647..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: