From 81ff98cfedbc7313ee6ca0e4738e3fd5c2f4ab59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Kadl=C4=8D=C3=ADk?= Date: Tue, 21 Mar 2017 11:29:27 +0100 Subject: [PATCH] Not fail when there is no scmurl --- module_build_service/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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],