]> git.decadent.org.uk Git - dak.git/commitdiff
dak/export_suite.py: skip existing files
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:38:47 +0000 (16:38 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 14:38:47 +0000 (16:38 +0200)
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__':