From f95eccf3076f012f4555f50ca6bf3bf44b2cb031 Mon Sep 17 00:00:00 2001 From: Ciaran Gultnieks Date: Thu, 10 Apr 2014 13:58:42 +0100 Subject: [PATCH] Put commit hash of fdroidserver in use onto buildserver --- fdroidserver/build.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/fdroidserver/build.py b/fdroidserver/build.py index c65703c3..d834cab0 100644 --- a/fdroidserver/build.py +++ b/fdroidserver/build.py @@ -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') -- 2.30.2