From 0f13164ac885934f81d5c9fb50d2692af77b4ade Mon Sep 17 00:00:00 2001 From: mprahl Date: Mon, 5 Feb 2018 22:11:04 -0500 Subject: [PATCH] Use a set instead of a list when making sure the buildrequires match on a modulemd --- module_build_service/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module_build_service/models.py b/module_build_service/models.py index 44ffdac0..0268ccd7 100644 --- a/module_build_service/models.py +++ b/module_build_service/models.py @@ -269,7 +269,7 @@ class ModuleBuild(MBSBase): if property_name not in mbs_xmd: raise ValueError('The module\'s modulemd hasn\'t been formatted by MBS') mmd_property = getattr(mmd, property_name) - if mbs_xmd[property_name].keys() != mmd_property.keys(): + if set(mbs_xmd[property_name].keys()) != set(mmd_property.keys()): raise ValueError('The dependencies.{0} section of the modulemd doesn\'t match ' 'what is in xmd'.format(property_name)) mmd_formatted_property = {