MCPcopy Create free account
hub / github.com/aboutcode-org/scancode-toolkit / update_with_dejacode_data

Function update_with_dejacode_data

etc/scripts/utils_dejacode.py:75–84  ·  view source on GitHub ↗

Update the Distribution `distribution` with DejaCode package data. Return True if data was updated.

(distribution)

Source from the content-addressed store, hash-verified

73
74
75def update_with_dejacode_data(distribution):
76 """
77 Update the Distribution `distribution` with DejaCode package data. Return
78 True if data was updated.
79 """
80 package_data = get_package_data(distribution)
81 if package_data:
82 return distribution.update(package_data, keep_extra=False)
83
84 print(f"No package found for: {distribution}")
85
86
87def update_with_dejacode_about_data(distribution):

Callers

nothing calls this directly

Calls 2

get_package_dataFunction · 0.70
updateMethod · 0.45

Tested by

no test coverage detected