mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-04 22:40:12 +01:00
Remove duplicate build_flags check
It's already checked in set_flag
This commit is contained in:
parent
1987ee7f54
commit
490da2da22
@ -1000,9 +1000,6 @@ def parse_txt_metadata(metadatapath):
|
||||
|
||||
pk, pv = bv
|
||||
pk = pk.lstrip()
|
||||
if pk not in build_flags:
|
||||
raise MetaDataException("Unrecognised build flag at {0} in {1}"
|
||||
.format(p, linedesc))
|
||||
t = flagtype(pk)
|
||||
if t == 'list':
|
||||
pv = split_list_values(pv)
|
||||
@ -1013,10 +1010,6 @@ def parse_txt_metadata(metadatapath):
|
||||
if pv == 'yes':
|
||||
build.set_flag(pk, True)
|
||||
|
||||
else:
|
||||
raise MetaDataException("Unrecognised build flag type '%s' at %s in %s"
|
||||
% (t, p, linedesc))
|
||||
|
||||
def parse_buildline(lines):
|
||||
v = "".join(lines)
|
||||
parts = [p.replace("\\,", ",") for p in re.split(build_line_sep, v)]
|
||||
|
Loading…
Reference in New Issue
Block a user