mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-04-20 20:13:10 +02:00
Ensure dist files have correct permissions
This commit is contained in:
parent
6a134427c8
commit
2ee5ad2e30
1 changed files with 4 additions and 2 deletions
|
|
@ -151,8 +151,10 @@ def upload_to_staging(self, tdir, backup, files):
|
|||
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():
|
||||
|
|
|
|||
Loading…
Reference in a new issue