1 |
commit: 30f11878cf9a37ba3ab5759db5d0546be4e6f0d5 |
2 |
Author: Max Magorsch <arzano <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 7 20:44:12 2020 +0000 |
4 |
Commit: Max Magorsch <arzano <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 7 20:44:12 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=30f11878 |
7 |
|
8 |
Fix the chmod by using the 0o prefix |
9 |
|
10 |
Signed-off-by: Max Magorsch <arzano <AT> gentoo.org> |
11 |
|
12 |
html/generate.py | 2 +- |
13 |
1 file changed, 1 insertion(+), 1 deletion(-) |
14 |
|
15 |
diff --git a/html/generate.py b/html/generate.py |
16 |
index 3d7c458..d88e030 100755 |
17 |
--- a/html/generate.py |
18 |
+++ b/html/generate.py |
19 |
@@ -177,7 +177,7 @@ template.stream(lastUpdate=lastUpdate).dump(html_folder + "help.html") |
20 |
# |
21 |
with tempfile.NamedTemporaryFile(dir=os.path.dirname(cache_path), delete=False, mode='wt') as fout: |
22 |
json.dump(cache_data, fout) |
23 |
- os.chmod(fout.name, 644) |
24 |
+ os.chmod(fout.name, 0o644) |
25 |
os.replace(fout.name, cache_path) |