From 3c1cfae4ec1c7ef99cea51ca41254bd3477f60a0 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sun, 12 Aug 2012 16:38:47 +0200 Subject: [PATCH] dak/export_suite.py: skip existing files --- dak/export_suite.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dak/export_suite.py b/dak/export_suite.py index a4a59531..03d11849 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__': -- 2.39.5