From: Joerg Jaspert Date: Sun, 16 Sep 2012 16:47:53 +0000 (+0200) Subject: we dont like -p, use shutil.copy instead of .copy2 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=27392942032f853b74e097a7016d958ed93eac9c;p=dak we dont like -p, use shutil.copy instead of .copy2 Signed-off-by: Joerg Jaspert --- diff --git a/daklib/fstransactions.py b/daklib/fstransactions.py index 33f59c8c..d07139f9 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.copy2(source, self.destination) + shutil.copy(source, self.destination) else: - shutil.copy2(source, self.destination) + shutil.copy(source, self.destination) self.need_cleanup = True if mode is not None: