mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-18 20:50:10 +01:00
lint: check srclibs has name and @ in it
fdroiddata!2863
This commit is contained in:
parent
4b0f9d6653
commit
5db86215f6
@ -369,10 +369,13 @@ def check_builds(app):
|
||||
yield _("Branch '{branch}' used as commit in build '{versionName}'")\
|
||||
.format(branch=s, versionName=build.versionName)
|
||||
for srclib in build.srclibs:
|
||||
if '@' in srclib:
|
||||
ref = srclib.split('@')[1].split('/')[0]
|
||||
if ref.startswith(s):
|
||||
yield _("Branch '{branch}' used as commit in srclib '{srclib}'")\
|
||||
.format(branch=s, srclib=srclib)
|
||||
else:
|
||||
yield _('srclibs missing name and/or @') + ' (srclibs: ' + srclib + ')'
|
||||
for key in build.keys():
|
||||
if key not in supported_flags:
|
||||
yield _('%s is not an accepted build field') % key
|
||||
|
Loading…
Reference in New Issue
Block a user