Allow importing modules without a Koji tag

These module builds will basically act as metadata-only module builds.
This will be more useful as additional features stem from these types
of builds.
This commit is contained in:
mprahl
2019-04-03 17:17:49 -04:00
parent 9aae63f967
commit f1480feec2
23 changed files with 187 additions and 29 deletions

View File

@@ -245,6 +245,11 @@ class DBResolver(GenericResolver):
if not build:
raise RuntimeError(
'Buildrequired module %s %r does not exist in MBS db' % (br_name, details))
# If the buildrequire is a meta-data only module with no Koji tag set, then just
# skip it
if build.koji_tag is None:
continue
module_tags.setdefault(build.koji_tag, [])
module_tags[build.koji_tag].append(build.mmd())