Skip to content

Commit d7b01b0

Browse files
leliaclaude
andcommitted
docs: correct the add_purl_capabilities docstring
The loop covers updated_packages as well as new_packages; the docstring still described only the latter. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent f16525f commit d7b01b0

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

socketsecurity/core/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,10 @@ def get_source_data(package: Package, packages: dict) -> list:
24002400
@staticmethod
24012401
def add_purl_capabilities(diff: Diff) -> None:
24022402
"""
2403-
Adds capability information to each package in the diff's new_packages list.
2403+
Adds capability information to the diff's added and updated packages.
2404+
2405+
Both lists are walked because an updated package is still newly present at
2406+
its new version, so its capabilities are as relevant as an added one's.
24042407
24052408
Args:
24062409
diff: Diff object to update with capability information

0 commit comments

Comments
 (0)