chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e8a5d2b
)
fix rsync's chmod on local copy
author
Hans-Christoph Steiner
<hans@eds.org>
Fri, 10 Oct 2014 01:22:50 +0000
(21:22 -0400)
committer
Hans-Christoph Steiner
<hans@eds.org>
Thu, 23 Oct 2014 18:26:11 +0000
(14:26 -0400)
rsync's --chmod works a bit oddly, it only affects the source files. To
make it set the destintation with the perms set in --chmod, the --perms
flag must also be included.
fdroidserver/server.py
patch
|
blob
|
history
diff --git
a/fdroidserver/server.py
b/fdroidserver/server.py
index 473529db8b30e986687e4fff25a2335d13342156..21454b800a0f2ce9fd449a9d769005280240e231 100644
(file)
--- a/
fdroidserver/server.py
+++ b/
fdroidserver/server.py
@@
-143,7
+143,7
@@
def update_serverwebroot(serverwebroot, repo_section):
def _local_sync(fromdir, todir):
- rsyncargs = ['rsync', '--recursive', '--links', '--times',
+ rsyncargs = ['rsync', '--recursive', '--links', '--times',
'--perms',
'--one-file-system', '--delete', '--chmod=Da+rx,Fa-x,a+r,u+w']
# use stricter rsync checking on all files since people using offline mode
# are already prioritizing security above ease and speed