X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fcontents.py;h=2a29b2e55b5080eadc574e559edf38a22ae1615a;hb=40970b8f6af57da3b1a65237e7bc6af7ba77ec73;hp=69000acf816c845305e333efb7ae711a97e331af;hpb=bca08bd7434a318772a17ff4d4a9ecbbfee0fca8;p=dak.git diff --git a/daklib/contents.py b/daklib/contents.py index 69000acf..2a29b2e5 100755 --- a/daklib/contents.py +++ b/daklib/contents.py @@ -190,12 +190,8 @@ select bc.file, string_agg(o.section || '/' || b.package, ',' order by b.package gzip.stdin.close() output_file.close() gzip.wait() - try: - os.remove(final_filename) - except: - pass + os.chmod(temp_filename, 0664) os.rename(temp_filename, final_filename) - os.chmod(final_filename, 0664) @classmethod def log_result(class_, result):