Use the NVR instead of the component name when responding to a tag message

This addresses an issue when a module contains builds that have different
names in their NVR than the component name in MBS. This happens with
SCLs for instance. MBS wouldn't be able to find the component to mark
as tagged in the database since it was searching by the wrong name, so the
build would just stall. This uses the NVR now to find the correct build
in the database.
This commit is contained in:
mprahl
2018-08-07 11:45:50 -04:00
parent 411e459008
commit f08135352a
6 changed files with 73 additions and 65 deletions

View File

@@ -630,7 +630,8 @@ chmod 644 %buildroot/etc/rpm/macros.zz-modules
log.info('The build being skipped isn\'t tagged in the "{0}" tag. Will send a '
'message to the tag handler'.format(tag))
further_work.append(module_build_service.messaging.KojiTagChange(
'recover_orphaned_artifact: fake message', tag, component_build.package))
'recover_orphaned_artifact: fake message', tag, component_build.package,
component_build.nvr))
return further_work
def build(self, artifact_name, source):