use scm_stream instead of scm.branch

This commit is contained in:
Mike McLean
2021-05-13 11:05:35 -04:00
parent 4e7b7ab94e
commit 872320a230

View File

@@ -102,11 +102,11 @@ def fetch_mmd(url, branch=None, allow_local_url=False, whitelist_url=False, mand
if isinstance(stream_or_packager, Modulemd.ModuleStream):
# this is a ModuleStreamV2 object
stream_or_packager = stream_or_packager.copy(stream_or_packager.get_module_name(),
scm.branch)
scm_stream)
else:
# this is a PackagerV3 object
stream_or_packager = stream_or_packager.copy()
stream_or_packager.set_stream_name(scm.branch)
stream_or_packager.set_stream_name(scm_stream)
# If the version is in the modulemd, throw an exception since the version
# since the version is generated by MBS