commit:     30f11878cf9a37ba3ab5759db5d0546be4e6f0d5
Author:     Max Magorsch <arzano <AT> gentoo <DOT> org>
AuthorDate: Thu May  7 20:44:12 2020 +0000
Commit:     Max Magorsch <arzano <AT> gentoo <DOT> org>
CommitDate: Thu May  7 20:44:12 2020 +0000
URL:        
https://gitweb.gentoo.org/proj/gentoo-mirrorstats.git/commit/?id=30f11878

Fix the chmod by using the 0o prefix

Signed-off-by: Max Magorsch <arzano <AT> gentoo.org>

 html/generate.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/html/generate.py b/html/generate.py
index 3d7c458..d88e030 100755
--- a/html/generate.py
+++ b/html/generate.py
@@ -177,7 +177,7 @@ template.stream(lastUpdate=lastUpdate).dump(html_folder + 
"help.html")
 #
 with tempfile.NamedTemporaryFile(dir=os.path.dirname(cache_path), 
delete=False, mode='wt') as fout:
     json.dump(cache_data, fout)
-    os.chmod(fout.name, 644)
+    os.chmod(fout.name, 0o644)
     os.replace(fout.name, cache_path)
 
 

Reply via email to