Gentoo Archives: gentoo-commits

From: Max Magorsch <arzano@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/gentoo-mirrorstats:master commit in: html/
Date: Thu, 07 May 2020 20:44:49
Message-Id: 1588884252.30f11878cf9a37ba3ab5759db5d0546be4e6f0d5.arzano@gentoo
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)