chiark / gitweb /
Put commit hash of fdroidserver in use onto buildserver
authorCiaran Gultnieks <ciaran@ciarang.com>
Thu, 10 Apr 2014 12:58:42 +0000 (13:58 +0100)
committerCiaran Gultnieks <ciaran@ciarang.com>
Thu, 10 Apr 2014 12:58:42 +0000 (13:58 +0100)
fdroidserver/build.py

index c65703c364047cf2462cba0e732dba878e0b7bd2..d834cab08b9df0ca2511b8dcf98b103656a1a83c 100644 (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')