[dak/master] dak/export_suite.py: skip existing files
---
dak/export_suite.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dak/export_suite.py b/dak/export_suite.py
index a4a5953..03d1184 100644
--- a/dak/export_suite.py
+++ b/dak/export_suite.py
@@ -77,7 +77,8 @@ def main(argv=None):
with FilesystemTransaction() as fs:
for f in files:
dst = os.path.join(directory, f.basename)
- fs.copy(f.fullpath, dst, symlink=symlink)
+ if not os.path.exists(dst):
+ fs.copy(f.fullpath, dst, symlink=symlink)
fs.commit()
if __name__ == '__main__':
--
1.7.2.5
Reply to: