From 411e4590081b3282a5a46b0527449dfdb382b84d Mon Sep 17 00:00:00 2001 From: mprahl Date: Aug 07 2018 14:34:09 +0000 Subject: 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. --- diff --git a/module_build_service/utils/reuse.py b/module_build_service/utils/reuse.py index 826cad9..395aa6c 100644 --- a/module_build_service/utils/reuse.py +++ b/module_build_service/utils/reuse.py @@ -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,