[rocpd] Write rocpd yaml files as a list, even when only 1 file (#2288)

이 커밋은 다음에 포함됨:
Young Hui - AMD 작성하고 GitHub가 2025-12-22 17:56:59 -05:00를 커밋함
1 부모 447025011a
커밋 37e3b8a3db
1 파일이 변경됨
+1 -5
+1 -5
파일 보기
@@ -377,11 +377,7 @@ def create_metadata_file(db_files, output_path=".", metadata_filename="index.yam
rocpd_metadata_param_version: rocpd_package_version,
# "source": "rocprofv3", # omitting source, not sure why we need this, and how we determine the source as rocprof-sys, for example.
"path": ".",
"files": (
rel_paths
if len(rel_paths) > 1
else (rel_paths[0] if rel_paths else "")
),
"files": rel_paths,
}
}
}