mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +02:00
Be more specific about empty build flags
This commit is contained in:
parent
fba632cf07
commit
db7eda3b47
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user