From: Ciaran Gultnieks Date: Thu, 10 Apr 2014 12:58:42 +0000 (+0100) Subject: Put commit hash of fdroidserver in use onto buildserver X-Git-Tag: 0.2~137 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=f95eccf3076f012f4555f50ca6bf3bf44b2cb031;p=fdroidserver.git Put commit hash of fdroidserver in use onto buildserver --- 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')