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

Be more specific about empty build flags

This commit is contained in:
Daniel Martí 2015-07-24 18:08:48 -07:00
parent fba632cf07
commit db7eda3b47

View File

@ -586,6 +586,9 @@ def parse_metadata(metafile):
linedesc = None
def add_buildflag(p, thisbuild):
if not p.strip():
raise MetaDataException("Empty build flag at {1}"
.format(buildlines[0], linedesc))
bv = p.split('=', 1)
if len(bv) != 2:
raise MetaDataException("Invalid build flag at {0} in {1}"