mirror of
https://pagure.io/fm-orchestrator.git
synced 2026-06-14 22:17:34 +08:00
use scm_stream instead of scm.branch
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user