Skip to content

Commit e08d649

Browse files
authored
Add details about matching order in docstring
Signed-off-by: tdruez <[email protected]>
1 parent 3bc43ee commit e08d649

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

component_catalog/models.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2534,10 +2534,10 @@ def get_purldb_entries(self, user, max_request_call=0, timeout=10):
25342534
"""
25352535
Return the PurlDB entries that correspond to this Package instance.
25362536
2537-
Matching on the following fields order:
2538-
- Hash
2539-
- Download URL
2540-
- Package URL
2537+
Matching is performed in order of decreasing accuracy:
2538+
1. Hash - Most accurate, matches exact file content
2539+
2. Download URL - High accuracy, matches specific package source
2540+
3. Package URL - Broadest match, may return multiple versions/variants
25412541
25422542
A `max_request_call` integer can be provided to limit the number of
25432543
HTTP requests made to the PackageURL server.

0 commit comments

Comments
 (0)