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
1 changed files with 3 additions and 1 deletions

View File

@ -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()