Use a set instead of a list when making sure the buildrequires match on a modulemd

This commit is contained in:
mprahl
2018-02-05 22:11:04 -05:00
parent 6b3cc64711
commit 0f13164ac8

View File

@@ -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 = {