mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-15 15:32:30 +03:00
build/checkupdates/update: log current fdroiddata commit to wiki
This commit is contained in:
parent
86907d2ebf
commit
70d9633555
4 changed files with 21 additions and 0 deletions
|
@ -3100,3 +3100,21 @@ def get_android_tools_version_log(ndk_path=None):
|
|||
log += '* ' + name + ' (' + version + ')\n'
|
||||
|
||||
return log
|
||||
|
||||
|
||||
def get_git_describe_link():
|
||||
"""Get a link to the current fdroiddata commit, to post to the wiki
|
||||
|
||||
"""
|
||||
try:
|
||||
output = subprocess.check_output(['git', 'describe', '--always', '--dirty', '--abbrev=0'],
|
||||
universal_newlines=True).strip()
|
||||
except subprocess.CalledProcessError:
|
||||
pass
|
||||
if output:
|
||||
commit = output.replace('-dirty', '')
|
||||
return ('* fdroiddata: [https://gitlab.com/fdroid/fdroiddata/commit/{commit} {id}]\n'
|
||||
.format(commit=commit, id=output))
|
||||
else:
|
||||
logging.error(_("'{path}' failed to execute!").format(path='git describe'))
|
||||
return ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue