From 490da2da2287172e248b4d423e6babd2b73d9a65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Thu, 3 Dec 2015 10:58:12 +0100 Subject: [PATCH] Remove duplicate build_flags check It's already checked in set_flag --- fdroidserver/metadata.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/fdroidserver/metadata.py b/fdroidserver/metadata.py index 1db8843d..07533d2b 100644 --- a/fdroidserver/metadata.py +++ b/fdroidserver/metadata.py @@ -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)]