]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/fstransactions.py
Add by-hash support
[dak.git] / daklib / fstransactions.py
index dbc42647b0dd209e63b834bf97ecbf39ed0fe7c8..eb4874a1083ef083781270480165a77dfb1e975a 100644 (file)
@@ -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: