Keep the 'module_name:[]' in requires unexpanded in generate_expanded_mmds.

This commit is contained in:
Jan Kaluza
2018-04-06 10:47:59 +02:00
parent 6cc577b4b9
commit 836fb9db10
2 changed files with 14 additions and 1 deletions

View File

@@ -279,7 +279,7 @@ def generate_expanded_mmds(session, mmd, raise_if_stream_ambigous=False, default
# Each generated MMD must be new Module object...
# TODO: Use copy method once its in released libmodulemd:
# https://github.com/fedora-modularity/libmodulemd/pull/20
mmd_copy = Modulemd.Module.new_from_string(current_mmd.dumps())
mmd_copy = Modulemd.Module.new_from_string(mmd.dumps())
xmd = glib.from_variant_dict(mmd_copy.get_xmd())
# Requires contain the NSVC representing the input mmd.