File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -608,12 +608,12 @@ def create_sbom_for_source_tarball(tarball_path: str) -> SBOM:
608
608
# Now we walk the tarball and compare known files to our expected checksums in the SBOM.
609
609
# All files that aren't already in the SBOM can be added as "CPython" f
7C74
iles.
610
610
for member in tarball .getmembers ():
611
- if member .isdir (): # Skip directories!
611
+ if not member .isfile (): # Only keep files (no symlinks)
612
612
continue
613
613
614
614
# Get the member from the tarball. CPython prefixes all of its
615
615
# source code with 'Python-{version}/...'.
616
- assert member .isfile () and member . name .startswith (f"Python-{ cpython_version } /" )
616
+ assert member .name .startswith (f"Python-{ cpython_version } /" )
617
617
618
618
# Calculate the hashes, either for comparison with a known value
619
619
# or to embed in the SBOM as a new file. SHA1 is only used because
You can’t perform that action at this time.
0 commit comments