From: Joerg Jaspert Date: Sun, 16 Sep 2012 18:06:36 +0000 (+0200) Subject: Revert "we dont like -p, use shutil.copy instead of .copy2" X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=1964f5bb5f355e9674f41a849f80d2435729ea06;p=dak.git Revert "we dont like -p, use shutil.copy instead of .copy2" This reverts commit 27392942032f853b74e097a7016d958ed93eac9c. Signed-off-by: Joerg Jaspert --- 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: