]> err.no Git - dak/commitdiff
we dont like -p, use shutil.copy instead of .copy2
authorJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 16:47:53 +0000 (18:47 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sun, 16 Sep 2012 16:47:53 +0000 (18:47 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
daklib/fstransactions.py

index 33f59c8c570072b989ab7cca301fc664c4c73ba5..d07139f9dc79caa71869e47a42f0f2a20e052e7b 100644 (file)
@@ -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: