mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Ensure installers have correct permissions
This commit is contained in:
parent
cb617f76be
commit
4e086bb3d6
@ -138,6 +138,8 @@ class UploadInstallers(Command): # {{{
|
||||
available = set(glob.glob('dist/*'))
|
||||
files = {x:installer_description(x) for x in
|
||||
all_possible.intersection(available)}
|
||||
for x in files:
|
||||
os.chmod(x, stat.S_IRUSR|stat.S_IWUSR|stat.S_IRGRP|stat.S_IROTH)
|
||||
sizes = {os.path.basename(x):os.path.getsize(x) for x in files}
|
||||
self.record_sizes(sizes)
|
||||
tdir = mkdtemp()
|
||||
|
Loading…
x
Reference in New Issue
Block a user