Buildbot: Make sure files are readable by www group

This commit is contained in:
Sergey Sharybin
2015-05-17 19:27:48 +05:00
parent 2b9d806432
commit a622cdaad8

View File

@@ -124,10 +124,12 @@ else:
directory = 'public_html/download' directory = 'public_html/download'
try: try:
filename = os.path.join(directory, packagename)
zf = z.open(package) zf = z.open(package)
f = file(os.path.join(directory, packagename), "wb") f = file(filename, "wb")
shutil.copyfileobj(zf, f) shutil.copyfileobj(zf, f)
os.chmod(filename, 0644)
zf.close() zf.close()
z.close() z.close()