Return an exception to the user if no dependency combination is determined

This commit is contained in:
mprahl
2019-02-25 11:59:54 -05:00
committed by mprahl
parent f6a4befefe
commit d5f9c5872f
2 changed files with 26 additions and 0 deletions

View File

@@ -523,6 +523,9 @@ def submit_module_build(username, url, mmd, optional_params=None):
validate_mmd(mmd)
mmds = generate_expanded_mmds(db.session, mmd, raise_if_stream_ambigous, default_streams)
if not mmds:
raise ValidationError('No dependency combination was satisfied. Please verify the '
'buildrequires in your modulemd have previously been built.')
modules = []
# True if all module builds are skipped so MBS will actually not rebuild