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:
parent
fba632cf07
commit
db7eda3b47
@ -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}"
|
||||||
|
Loading…
Reference in New Issue
Block a user