1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Push index to server last

This commit is contained in:
Ciaran Gultnieks 2013-04-04 18:43:35 +01:00
parent d54031294a
commit fdc04fe64e

View File

@ -41,8 +41,14 @@ def main():
print "The only command currently supported is 'update'"
sys.exit(1)
sys.exit(subprocess.call(['rsync',
'-u', '-v', '-r', '--delete', 'repo', serverwebroot]))
if subprocess.call(['rsync', '-u', '-v', '-r', '--delete', '--exclude', 'repo/index.xml', '--exclude', 'repo/index.jar', 'repo', serverwebroot]) != 0:
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__":
main()