chiark
/
gitweb
/
~ianmdlvl
/
fdroidserver.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b742019
)
Put commit hash of fdroidserver in use onto buildserver
author
Ciaran Gultnieks
<ciaran@ciarang.com>
Thu, 10 Apr 2014 12:58:42 +0000
(13:58 +0100)
committer
Ciaran Gultnieks
<ciaran@ciarang.com>
Thu, 10 Apr 2014 12:58:42 +0000
(13:58 +0100)
fdroidserver/build.py
patch
|
blob
|
history
diff --git
a/fdroidserver/build.py
b/fdroidserver/build.py
index c65703c364047cf2462cba0e732dba878e0b7bd2..d834cab08b9df0ca2511b8dcf98b103656a1a83c 100644
(file)
--- 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')