X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fexport_suite.py;h=03d118496bd408ef7cb6c5b5c27dcf82397a175e;hb=3c1cfae4ec1c7ef99cea51ca41254bd3477f60a0;hp=a4a595310657fee1b5c6b3a0c8733b8435a4e464;hpb=d2b9d391bbf933f743c8d89745439d53d7dd998d;p=dak.git 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__':