]> git.decadent.org.uk Git - dak.git/commitdiff
Contents: ignore errors when removing destination file.
authorTorsten Werner <twerner@debian.org>
Tue, 22 Mar 2011 14:54:11 +0000 (14:54 +0000)
committerTorsten Werner <twerner@debian.org>
Tue, 22 Mar 2011 14:54:11 +0000 (14:54 +0000)
Signed-off-by: Torsten Werner <twerner@debian.org>
daklib/contents.py

index 99d852b37970112edfae1b20bbceca858f4cdc54..848976d54717100992daf4099ac1f4a947dd2a98 100755 (executable)
@@ -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)