Skip to content

Commit

Permalink
Update resources with match results
Browse files Browse the repository at this point in the history
Signed-off-by: Jono Yang <[email protected]>
  • Loading branch information
JonoYang committed Jan 23, 2025
1 parent 088af1d commit 3d464f0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scanpipe/pipes/matchcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -362,3 +362,9 @@ def create_packages_from_match_results(project, match_results):
package_data=matched_package,
status=flag.MATCHED_TO_PURLDB_PACKAGE,
)
match_resources = match_results.get("files", [])
for match_resource in match_resources:
match_resource_extra_data = match_resource["extra_data"]
if match_resource_extra_data:
resource = project.codebaseresources.get(path=match_resource["path"])
resource.update_extra_data(match_resource_extra_data)

0 comments on commit 3d464f0

Please sign in to comment.