diff --git a/module_build_service/utils.py b/module_build_service/utils.py index 59f87377..6e7c8a5c 100644 --- a/module_build_service/utils.py +++ b/module_build_service/utils.py @@ -475,7 +475,7 @@ def format_mmd(mmd, scmurl): 'version': module_stream} commit_hash, version = get_module_commit_hash_and_version( pdc, module_info) - if commit_hash and version: + if version and (commit_hash or not scmurl): mmd.xmd['mbs']['buildrequires'][module_name] = { 'ref': commit_hash, 'stream': mmd.buildrequires[module_name],