Buildbot: Make sure files are readable by www group
This commit is contained in:
@@ -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()
|
||||||
|
Reference in New Issue
Block a user