mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure dist files have correct permissions
This commit is contained in:
parent
6a134427c8
commit
2ee5ad2e30
@ -151,8 +151,10 @@ class UploadInstallers(Command): # {{{
|
|||||||
shutil.copyfile(hosting, os.path.join(tdir, 'hosting.py'))
|
shutil.copyfile(hosting, os.path.join(tdir, 'hosting.py'))
|
||||||
|
|
||||||
for f in files:
|
for f in files:
|
||||||
shutil.copyfile(f, os.path.join(tdir, f))
|
for x in (tdir, backup):
|
||||||
shutil.copyfile(f, os.path.join(backup, f))
|
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:
|
with open(os.path.join(tdir, 'fmap'), 'wb') as fo:
|
||||||
for f, desc in files.iteritems():
|
for f, desc in files.iteritems():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user