projects
/
dak.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2b9d39
)
dak/export_suite.py: skip existing files
author
Ansgar Burchardt
<ansgar@debian.org>
Sun, 12 Aug 2012 14:38:47 +0000
(16:38 +0200)
committer
Ansgar Burchardt
<ansgar@debian.org>
Sun, 12 Aug 2012 14:38:47 +0000
(16:38 +0200)
dak/export_suite.py
patch
|
blob
|
history
diff --git
a/dak/export_suite.py
b/dak/export_suite.py
index a4a595310657fee1b5c6b3a0c8733b8435a4e464..03d118496bd408ef7cb6c5b5c27dcf82397a175e 100644
(file)
--- 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__':