]> git.decadent.org.uk Git - dak.git/blobdiff - dak/export_suite.py
dak/export_suite.py: skip existing files
[dak.git] / dak / export_suite.py
index a4a595310657fee1b5c6b3a0c8733b8435a4e464..03d118496bd408ef7cb6c5b5c27dcf82397a175e 100644 (file)
@@ -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__':