nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1diff -Nurp sigal-2.3.orig/sigal/writer.py sigal-2.3/sigal/writer.py
2--- sigal-2.3.orig/sigal/writer.py 2022-08-08 19:43:10.934707194 +0200
3+++ sigal-2.3/sigal/writer.py 2022-08-08 19:44:57.542382532 +0200
4@@ -103,7 +103,11 @@ class AbstractWriter:
5 os.path.join(THEMES_PATH, 'default', 'static'),
6 os.path.join(self.theme, 'static'),
7 ):
8- shutil.copytree(static_path, self.theme_path, dirs_exist_ok=True)
9+ # https://stackoverflow.com/a/17022146/4935114
10+ orig_copystat = shutil.copystat
11+ shutil.copystat = lambda x, y: x
12+ shutil.copytree(static_path, self.theme_path, dirs_exist_ok=True, copy_function=shutil.copy)
13+ shutil.copystat = orig_copystat
14
15 if self.settings["user_css"]:
16 if not os.path.exists(self.settings["user_css"]):