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

Put commit hash of fdroidserver in use onto buildserver

This commit is contained in:
Ciaran Gultnieks 2014-04-10 13:58:42 +01:00
parent b7420192eb
commit f95eccf307

View File

@ -254,6 +254,12 @@ def build_server(app, thisbuild, vcs, build_dir, output_dir, force):
'config.buildserver.py'), 'config.py')
ftp.chmod('config.py', 0o600)
# Copy over the ID (head commit hash) of the fdroidserver in use...
subprocess.call('git rev-parse HEAD >' +
os.path.join(os.getcwd(), 'tmp', 'fdroidserverid'),
shell=True, cwd=serverpath)
ftp.put('tmp/fdroidserverid', 'fdroidserverid')
# Copy the metadata - just the file for this app...
ftp.mkdir('metadata')
ftp.mkdir('srclibs')