[dak/master 3/4] Contents: ignore errors when removing destination file.
Signed-off-by: Torsten Werner <twerner@debian.org>
---
daklib/contents.py | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/daklib/contents.py b/daklib/contents.py
index 99d852b..848976d 100755
--- a/daklib/contents.py
+++ b/daklib/contents.py
@@ -191,7 +191,10 @@ select bc.file, string_agg(o.section || '/' || b.package, ',' order by b.package
gzip.stdin.close()
output_file.close()
gzip.wait()
- os.remove(final_filename)
+ try:
+ os.remove(final_filename)
+ except:
+ pass
os.rename(temp_filename, final_filename)
os.chmod(final_filename, 0664)
--
1.7.2.5
Reply to: