Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
except FileNotFoundError:
pass
+ # Set the modification time (so that clients won't download again
+ # just because we have done a re-export)
+ os.utime(f.name, (list.updated_at.timestamp(), list.updated_at.timestamp()))
+
+ # Fix permissions
+ os.chmod(f.name, 0o644)
+
# Once the output has been written in full, we will rename the file
os.link(f.name, name)
- # Fix permissions
- os.chmod(name, 0o644)
def __add_source(self, backend, args):
"""