Ensure dist files have correct permissions

This commit is contained in:
Kovid Goyal 2013-06-22 08:30:59 +05:30
parent 6a134427c8
commit 2ee5ad2e30

View File

@ -151,8 +151,10 @@ class UploadInstallers(Command): # {{{
shutil.copyfile(hosting, os.path.join(tdir, 'hosting.py'))
for f in files:
shutil.copyfile(f, os.path.join(tdir, f))
shutil.copyfile(f, os.path.join(backup, f))
for x in (tdir, backup):
dest = os.path.join(x, f)
shutil.copyfile(f, dest)
os.chmod(dest, stat.S_IREAD|stat.S_IWRITE|stat.S_IRGRP|stat.S_IROTH)
with open(os.path.join(tdir, 'fmap'), 'wb') as fo:
for f, desc in files.iteritems():