From 6ce88630ec12b260fd15a816eeaa1133823fd8a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lubom=C3=ADr=20Sedl=C3=A1=C5=99?= Date: Wed, 3 May 2017 14:45:43 +0200 Subject: [PATCH] variants: Remove redundant check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This situation is handled by schema validation already, so this condition can never really fire. Signed-off-by: Lubomír Sedlář --- pungi/wrappers/variants.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/pungi/wrappers/variants.py b/pungi/wrappers/variants.py index 92e53b61..4f9938fb 100755 --- a/pungi/wrappers/variants.py +++ b/pungi/wrappers/variants.py @@ -200,9 +200,6 @@ class VariantsXmlParser(object): continue result[variant.id] = variant - for variant_node in self.tree.xpath("/variants/variant[not(@type='variant' or @type='addon' or @type='layered-product')]"): - raise RuntimeError("Invalid variant type at the top-level: %s" % variant_node.attrib["type"]) - return result