1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-04 22:40:12 +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 linedesc = None
def add_buildflag(p, thisbuild): def add_buildflag(p, thisbuild):
if not p.strip():
raise MetaDataException("Empty build flag at {1}"
.format(buildlines[0], linedesc))
bv = p.split('=', 1) bv = p.split('=', 1)
if len(bv) != 2: if len(bv) != 2:
raise MetaDataException("Invalid build flag at {0} in {1}" raise MetaDataException("Invalid build flag at {0} in {1}"