1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 14:30:11 +01:00

Print version names and srclibs for reference

This commit is contained in:
Daniel Martí 2014-03-18 12:46:40 +01:00
parent 03975808a3
commit b94a772ad9

View File

@ -200,12 +200,14 @@ def main():
for n in ['master', 'origin/', 'default', 'trunk']:
if 'commit' in build:
if build['commit'].startswith(n):
warn("Branch '%s' used as commit" % n)
warn("Branch '%s' used as commit in build '%s'" % (
n, build['version']))
if 'srclibs' in build:
for srclib in build['srclibs']:
ref = srclib.split('@')[1].split('/')[0]
if ref.startswith(n):
warn("Branch '%s' used as srclib commit" % n)
warn("Branch '%s' used as commit in srclib '%s'" % (
n, srclib))
if not appid:
print