]> err.no Git - dak/commitdiff
Revert "we dont like -p, use shutil.copy instead of .copy2"
authorJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 18:06:36 +0000 (20:06 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 18:06:36 +0000 (20:06 +0200)
This reverts commit 27392942032f853b74e097a7016d958ed93eac9c.

Signed-off-by: Joerg Jaspert <joerg@debian.org>
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: