8000 Refine get_purldb_entries to compare on plain PURL #307 by tdruez · Pull Request #308 · aboutcode-org/dejacode · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Refine get_purldb_entries to compare on plain PURL #307 #308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 28, 2025

Conversation

tdruez
Copy link
Contributor
@tdruez tdruez commented May 27, 2025

The recent changes included in #304 were a bit too restrictive in the PURL comparison.
This PR exclude the PURL qualifiers and subpaths for the PURL comparison when matching data returned by the PURLDB.

For example, if the provided PURL is pkg:pypi/boto3@1.37.26, the following PURL returned by the PURLDB are kept as relevant packages:

  • pkg:pypi/boto3@1.37.26?file_name=boto3-1.37.26-py3-none-any.whl
  • pkg:pypi/boto3@1.37.26?file_name=boto3-1.37.26.tar.gz

tdruez added 2 commits May 27, 2025 09:39
Including the qualifiers and subpaths in the comparison is too restrictive.

Signed-off-by: tdruez <tdruez@nexb.com>
Signed-off-by: tdruez <tdruez@nexb.com>
@tdruez tdruez marked this pull request as ready for review May 28, 2025 06:29
@tdruez tdruez merged commit 6fec557 into main May 28, 2025
4 checks passed
@tdruez tdruez deleted the 307-purldb-entries branch May 28, 2025 06:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

332A
1 participant
0