mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
Push index to server last
This commit is contained in:
parent
d54031294a
commit
fdc04fe64e
1 changed files with 8 additions and 2 deletions
|
@ -41,8 +41,14 @@ def main():
|
||||||
print "The only command currently supported is 'update'"
|
print "The only command currently supported is 'update'"
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
sys.exit(subprocess.call(['rsync',
|
if subprocess.call(['rsync', '-u', '-v', '-r', '--delete', '--exclude', 'repo/index.xml', '--exclude', 'repo/index.jar', 'repo', serverwebroot]) != 0:
|
||||||
'-u', '-v', '-r', '--delete', 'repo', serverwebroot]))
|
sys.exit(1)
|
||||||
|
if subprocess.call(['rsync', '-u', '-v', '-r', '--delete', 'repo/index.xml', serverwebroot + '/repo']) != 0:
|
||||||
|
sys.exit(1)
|
||||||
|
if subprocess.call(['rsync', '-u', '-v', '-r', '--delete', 'repo/index.jar', serverwebroot + '/repo']) != 0:
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
sys.exit(0)
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
main()
|
main()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue