Skip to content

Commit 6fcd3d3

Browse files
Update sbom.py
Co-authored-by: Adam Turner <9087854+AA-Turner@users.noreply.github.com>
1 parent d565378 commit 6fcd3d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sbom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ def create_sbom_for_source_tarball(tarball_path: str) -> SBOM:
608608
# Now we walk the tarball and compare known files to our expected checksums in the SBOM.
609609
# All files that aren't already in the SBOM can be added as "CPython" files.
610610
for member in tarball.getmembers():
611-
if member.isdir() or not member.isfile(): # Skip directories and symlinks!
611+
if not member.isfile(): # Only keep files (no symlinks)
612612
continue
613613

614614
# Get the member from the tarball. CPython prefixes all of its

0 commit comments

Comments
 (0)