Use the actual name from the NVR instead of component.package when reusing components

The name from the NVR and the name from the component may be different based on
the macros being used as part of the build. SCLs are a great example of this.
This commit is contained in:
mprahl
2018-08-07 10:29:53 -04:00
parent 3969b2fb1e
commit 411e459008

View File

@@ -67,7 +67,7 @@ def reuse_component(component, previous_component_build,
build_id=None,
task_id=component.task_id,
build_new_state=previous_component_build.state,
build_name=component.package,
build_name=nvr_dict['name'],
build_version=nvr_dict['version'],
build_release=nvr_dict['release'],
module_build_id=component.module_id,