From a622cdaad818a8da11202a8e10450fb063ad5705 Mon Sep 17 00:00:00 2001 From: Sergey Sharybin Date: Sun, 17 May 2015 19:27:48 +0500 Subject: Buildbot: Make sure files are readable by www group --- build_files/buildbot/master_unpack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build_files/buildbot/master_unpack.py b/build_files/buildbot/master_unpack.py index 46131c5e1de..ec44705931c 100644 --- a/build_files/buildbot/master_unpack.py +++ b/build_files/buildbot/master_unpack.py @@ -124,10 +124,12 @@ else: directory = 'public_html/download' try: + filename = os.path.join(directory, packagename) zf = z.open(package) - f = file(os.path.join(directory, packagename), "wb") + f = file(filename, "wb") shutil.copyfileobj(zf, f) + os.chmod(filename, 0644) zf.close() z.close() -- cgit v1.2.3