summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorRelease Engineering <releng@openoffice.org>2010-12-08 14:52:11 +0100
committerRelease Engineering <releng@openoffice.org>2010-12-08 14:52:11 +0100
commit9134cbd5d73ff5267e7f97ddae5b57beb02ca0df (patch)
tree4e17c6936e4bc1bfcd569a948d2a2885e7d39a6c /l10ntools
parent9beed81d79dcdccf20d39ce0cb65865342151fb1 (diff)
ause128: remove target file before copy over it
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/scripts/tool/l10ntool.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/l10ntools/scripts/tool/l10ntool.py b/l10ntools/scripts/tool/l10ntool.py
index f1630027ccdc..b65c262b6020 100644
--- a/l10ntools/scripts/tool/l10ntool.py
+++ b/l10ntools/scripts/tool/l10ntool.py
@@ -116,6 +116,11 @@ class AbstractL10nTool:
return self._options.inputfile[0] == '@'
def copy_file(self, inputfilename, outputfilename):
+ try:
+ os.remove(outputfilename)
+ except:
+ pass
+
try:
shutil.copy(inputfilename, outputfilename)
except IOError: