[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] we dont like -p, use shutil.copy instead of .copy2



Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
 daklib/fstransactions.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/daklib/fstransactions.py b/daklib/fstransactions.py
index 33f59c8..d07139f 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:
-- 
1.7.2.5


Reply to: