Only write metadata.source_path if source file exists

This commit is contained in:
Luke Street 2024-09-29 13:58:15 -06:00
parent 2f94ccb062
commit 584ec3de5f
1 changed files with 1 additions and 1 deletions

View File

@ -1243,6 +1243,7 @@ def generate_objdiff_config(
src_exists = obj.src_path is not None and obj.src_path.exists() src_exists = obj.src_path is not None and obj.src_path.exists()
if src_exists: if src_exists:
unit_config["base_path"] = obj.src_obj_path unit_config["base_path"] = obj.src_obj_path
unit_config["metadata"]["source_path"] = obj.src_path
cflags = obj.options["cflags"] cflags = obj.options["cflags"]
reverse_fn_order = False reverse_fn_order = False
@ -1300,7 +1301,6 @@ def generate_objdiff_config(
{ {
"complete": obj.completed, "complete": obj.completed,
"reverse_fn_order": reverse_fn_order, "reverse_fn_order": reverse_fn_order,
"source_path": obj.src_path,
"progress_categories": progress_categories, "progress_categories": progress_categories,
} }
) )